Posted on: 6/6/2013 2:07:23 AM | Views : 526

I have store a binary coded image into my SQL database. This binary coded image has another file named MemberReportImage1 which is there to decode the binary image. I'm able to display out the image on my webapp page. However, whenever i attempt to get the image from the database they will display system.byte() as it is directly retrieve from the database and has not been decoded. Hence i'm wondering if there is any way to retrieve the decoded image.

I have tried this method which eventually didnt work out
table.AddCell(Image1.Attributes["src"] = MemberReportImage1.aspx?); This is my decoding file
protected void Page_Load(object sender, EventArgs e) { string strQuery = "select image1 from MemberReport where memberreportid='" + Session["memberreportid"] + "'"; SqlCommand cmd = new Sql ...

Go to the complete details ...