G
gsoft
Unregistered / Unconfirmed
GUEST, unregistred user!
文件名:WebForm1.aspx
相关代码段:
procedure TWebForm1.Button2_Click(sender: System.Object; e: System.EventArgs);
var
n,imglent : integer;
i:integer;
imgdata : array of byte;
begin
SqlConnection1.Open;
SqlDataAdapter1.Fill(DataSet11);
SetLength (imgdata,1099901);
i := TextBox1.Text;//我将在WebForm1上的Text1中的值转换为整数(注意这里用IntToStr不行的)
imgdata := DataSet11._Table.Item.Image;
Response.BinaryWrite(imgdata);
SqlConnection1.Close;
end;
相关代码段:
procedure TWebForm1.Button2_Click(sender: System.Object; e: System.EventArgs);
var
n,imglent : integer;
i:integer;
imgdata : array of byte;
begin
SqlConnection1.Open;
SqlDataAdapter1.Fill(DataSet11);
SetLength (imgdata,1099901);
i := TextBox1.Text;//我将在WebForm1上的Text1中的值转换为整数(注意这里用IntToStr不行的)
imgdata := DataSet11._Table.Item.Image;
Response.BinaryWrite(imgdata);
SqlConnection1.Close;
end;