I have varbinary(max) column in database
and i am saving image in it and also trying to display as following
but it is covering full page
Dim img1 As Byte() = Nothing
img1 = DirectCast(clsdb.Objdatareader.Item(0), Byte()) Response.BinaryWrite(img1) I want to assign it to image control or display it in fix place or add to place holder
How to assign binary data to image control
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Datta KharadRank #2,135 · 668 reputationPosted Jan 13, 2012, 9:57 PM EST
http://www.c-sharpcorner.com/uploadfile/rmostafa/control-to-display-binary-images-in-Asp-Net/
vijay172 reputationPosted Jan 14, 2012, 2:03 AM EST
refer this link
http://www.dotnetcode.in/2011/06/how-to-validate-uploaded-images-in.html