Click here to Skip to main content
15,906,624 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Every one

I have to develop a page, where a user upload a file to the server
in the server side i have to develop logic to convert the image into
byte array without saving it on the server, and after having the image
byte array i have to show that on a image control.

How the above logic can be done

Thanks in advance
Regards
Posted

1 solution

There are problems with that, most notably that if you do not save the image data to the server, then any image you load will disappear as soon as the user refreshes the page - as the data is only present briefly at the end of the file upload.

I would strongly recommend that you save it to the server, perhaps with a timestamp so you can remove outdated entries.
 
Share this answer
 
Comments
TanzeelurRehman 17-Jan-12 3:25am    
Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900