I
Ivan Demkovitch
Hi!
I'm using output stream to output image to webpage.
//Move array to response stream.
Response.ContentType = "image/jpeg";
Response.OutputStream.Write(arrBt, 0, arrBt.Length);
Response.End();
But sometime's I want to output link to image instead of byte array.
How do I do this????
ex. //Just pass file name to response...
Response.ContentType = "text/html";
Response.OutputStream.Write((byte[])ScaledImageWebPath, 0,
(int)ScaledImageWebPath.Length);
Response.End();
(example above is not working - cannot convert string to array)
I'm using output stream to output image to webpage.
//Move array to response stream.
Response.ContentType = "image/jpeg";
Response.OutputStream.Write(arrBt, 0, arrBt.Length);
Response.End();
But sometime's I want to output link to image instead of byte array.
How do I do this????
ex. //Just pass file name to response...
Response.ContentType = "text/html";
Response.OutputStream.Write((byte[])ScaledImageWebPath, 0,
(int)ScaledImageWebPath.Length);
Response.End();
(example above is not working - cannot convert string to array)