I am getting back a image from SQL server as a byte[]. Can I use xsl transform to convert it into an actual image for a webpage? How, may I do so if this is possible?
A:
Your question is not clear. I can't see a relation between an image and an XSL transformation. Are you using an SVG image?
If you are storing something like a JPEG image, you could create an ASP.NET Handler that fetches that from DB as a byte[]
and use Response.BinaryWrite
method to stream that to the client.
Mehrdad Afshari
2009-06-25 23:09:03
+1
A:
Ok, so I got around via a recomendation by my coworker using:
return File(myImage.ImageBinary, "image/gif");
Andrew
2009-06-29 14:44:48