Mayur  Gujrathi

Mayur Gujrathi

  • 408
  • 3.9k
  • 1m

How to assign binary data to image control

Jan 13 2012 7:23 AM
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

Answers (2)