http://dotnet.aspx.cc/ShowList.aspx?id=1

解决方案 »

  1.   

    SqlConnection conn1 = new SqlConnection("????");
    SqlCommand cmd1 = new SqlCommand("select Image from table1 where id=1",conn1);
    conn1.Open();
    SqlDataReader dr = cmd1.ExecuteReader();
    dr.Read();
    Response.BinaryWrite( (byte[])dr.GetValue(0));

    //dapt.Update(ds,"a");
    conn1.Dispose();
    Response.End();
      

  2.   

    SqlConnection conn1 = new SqlConnection("????");
    SqlDataAdapter cmd1 = new SqlDataAdapter("select Image from table1 where id=1",conn1);
    conn1.Open();
    DataSet dr;
    cmd1.Fill(dr,"table1");
                                foreach(DataRow dt1 in dr.Tables[0].Rows))
                               {
    Response.BinaryWrite( (byte[])dt1[0]);
    }
    //dapt.Update(ds,"a");
    conn1.Dispose();
    Response.End();
      

  3.   

    不用能控件显示你用一个aspx专门显示用的时候
    <img src='drawimage.aspx?imageid=0001'>
      

  4.   

    就像插入一张图片一样,只不过src变成了一个aspx
      

  5.   

    你要把图片保存到本地机器.
    http://support.microsoft.com/default.aspx?scid=kb;EN-US;308042
      

  6.   

    就是把图片用Response.BinaryWrite显示在一个网页里
    然后用image控件把显示图片的网页框起来
    image1.imageurl="显示图片网页的地址"
    这样没有滚动条
    要滚动条就用iframe框显示图片的网页
      

  7.   

    等等别结贴
    Response.BinaryWrite( (byte[])dr.GetValue(0));
    怎么写成vb呀
    谢谢搂主
      

  8.   

    我改成 Dim OutputData() As Byte = SrBooks.GetValue(0)
            Response.BinaryWrite(OutputData),对不对?
    另外我执行了一下,可以执行,但是没有图像显示,怎么回事?