现在直接显示的 代码 如下 
Response.ContentType = "application/octet-stream";                            Response.BinaryWrite((Byte[])rdr["image"]);
Response.End(); 但是  我想在显示图片的时候  在图片上面显示水印 
谢谢 各位大虾了

解决方案 »

  1.   

    http://index.cnblogs.com/archive/2004/10/20/54498.aspx
      

  2.   

    System.Drawing.Image image = System.Drawing.Image.FromFile(path);
                    System.Drawing.Image copyImage = System.Drawing.Image.FromFile( Server.MapPath(".") + "/Alex.gif");
                    Graphics g = Graphics.FromImage(image);
                    g.DrawImage(copyImage, new Rectangle(image.Width-copyImage.Width, image.Height-copyImage.Height, copyImage.Width, copyImage.Height), 0, 0, copyImage.Width, copyImage.Height, GraphicsUnit.Pixel);
                    g.Dispose();
      

  3.   

    从数据库中读出数据,首先还原为Image类型,然后在此Image上方再次绘出一个透明的图像或一个文字就可以.最后写出Jpeg或者gif类型的图像文件就OK了