不需要控件
以图象方式存在数据库中,按以下程序读取即可:
content=(byte[])sr["image_data"];
filesize=content.Length.ToString();
filename=Common.Util.Get_filename(sr["source_file_name"].ToString());
if(sr["image_type"].ToString()=="application/pdf")
filename="x.pdf";
Response.ContentType = sr["image_type"].ToString();
Response.AddHeader("Content-Length",filesize);
Response.AddHeader("Content-Disposition", "inline;filename="+filename);
Response.BinaryWrite(content);