display image from memory stream

G

Guest

Hello,
I have managed up to the point that a byte[] imageContent contains a
picture which i can show in a aspx page by:

// return byte array to caller with image type
Response.ContentType = "image/jpeg";
Response.BinaryWrite(imageContent);

but what i need is to post it back to the page that the user entered various
details without losing them.
(For example if it was text I would populate a Label)
I have thought to do a cross post back and create the picture in a different
URL and then my image control point to that new URL but it doesnt feel that
it is the correct way to do it.
Any idea how that could be done?


thanks in advance
akis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,142
Latest member
arinsharma
Top