Converting a byte array into System.Web.UI.HtmlControls.HtmlImage
-
I have an image in the form of byte array and i have to display it as Htmlimage. I ve tried in google. I got some results ragarding converting the image into System.drawing.image Can any body post some links or info. to convert a byte array into html image?
--Sreeram
-
I have an image in the form of byte array and i have to display it as Htmlimage. I ve tried in google. I got some results ragarding converting the image into System.drawing.image Can any body post some links or info. to convert a byte array into html image?
--Sreeram
mareers wrote:
Can any body post some links or info. to convert a byte array into html image?
There's no such thing as a HTML image. You can display an image on a web page by using an <img> tag that points to the URL that represents the image resource. You could either: 1. Save your image to a file and point an tag to the URL for that file. 2. Create an ASPX page that writes the binary data for the image to the output stream and point an tag to the URL for that page. 3. Write a custom HTTP handler to service image requests and reference it in a similar way to 2. Perform a Google search for any of these and you should find plenty of relevent information.
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
-
mareers wrote:
Can any body post some links or info. to convert a byte array into html image?
There's no such thing as a HTML image. You can display an image on a web page by using an <img> tag that points to the URL that represents the image resource. You could either: 1. Save your image to a file and point an tag to the URL for that file. 2. Create an ASPX page that writes the binary data for the image to the output stream and point an tag to the URL for that page. 3. Write a custom HTTP handler to service image requests and reference it in a similar way to 2. Perform a Google search for any of these and you should find plenty of relevent information.
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
Hi - I'm using Classic ASP but hoping the solution will be similar if not the same. What I'm trying to do: I am working with a Flash ActionScript programmer. In his application, he is sending a "ByteArray" (binary data that defines the JPG) of a JPG file to my ASP. In my ASP I want to receive that querystring and write the JPG file to the server. Possible? How? Thanks! Scott@oceanmedia.net