Link to home
Start Free TrialLog in
Avatar of westdh
westdhFlag for United States of America

asked on

Asp.Net: Help-I am passing a querystring to ShowImage.ashx of a Picture in ImageData1. It is being reconized as a is reconized as a 'System.Byte[]'


I am passing a querystring to ShowImage.ashx of a Picture in ImageData1

<img alt="httpHandler" src="ShowImage.ashx?Picture='<%# Eval("ImageData1")%>'">

the problem is it ImageData1 is reconized as a 'System.Byte[]' meaning that it is still in a pack mode and needs to be streamed.

ShowImage.ashx?Picture='System.Byte[]'

------------------------------------------------------------------------------------------------------------
ShowImages.ashx code is in the code block and it needs correcting in order to unpack ImageData Binary Image Data to a displayable Image. I am stuck I donot no how....See Image also.


public void ProcessRequest (HttpContext context)
   {

         Response.ContentType = "image/jpeg"
         Response.Expires = 0
         Response.Buffer = True
         Response.Clear()
         string v = Request.QueryString["Picture"];
         respone.write("test: " + v)
         Response.BinaryWrite(CType(Request.QueryString("Picture"), Byte())
         HttpContext.Current.ApplicationInstance.CompleteRequest()

    }

}

Open in new window

sshot-9.png
ASKER CERTIFIED SOLUTION
Avatar of rdogmartin
rdogmartin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of westdh

ASKER

I have found the problem it is with the control it self.  I tried Telerix’s BinaryImageControl and it worked it allow me to page and login.
Avatar of westdh

ASKER

I have found the problem it is with the control it self.  I tried Telerix’s BinaryImageControl and it worked it allow me to page and login.