Mayur  Gujrathi

Mayur Gujrathi

  • 409
  • 3.9k
  • 1m

Showing image in pop up

Jan 7 2012 7:13 AM
I have a byte variable


Public img As Byte() = Nothing and i am taking image (binary data) in this from sql server database
 
I am passing it through querystring in this way from javascript


var img = '<%= img %>'; window.showModalDialog("cli_image.aspx?Client_img=" + img + " ", '', WinSettings); and retieving it in this way
 


Dim bt As Byte()=New System.Text.ASCIIEncoding().GetBytes(Context.Request.QueryString("Client_img")) Response.BinaryWrite(bt)
 but it is showing only system.byte[] it should show image

Answers (1)