How can I store an image in a session variable in asp.net
-
Hi How can i store an image(it is already in the image folder in the project)in a session variable? Also how can i retrieve this image and load it to an image control in asp.net Thanks Denny
-
Hi How can i store an image(it is already in the image folder in the project)in a session variable? Also how can i retrieve this image and load it to an image control in asp.net Thanks Denny
Read the image in a byte[] and assign it to the session variable.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
Hi How can i store an image(it is already in the image folder in the project)in a session variable? Also how can i retrieve this image and load it to an image control in asp.net Thanks Denny
As manash sugguested you can store image as byte array in the session variable. But why you are storing image in session variable ? Did you thing about size of session variable?
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net
-
Hi How can i store an image(it is already in the image folder in the project)in a session variable? Also how can i retrieve this image and load it to an image control in asp.net Thanks Denny
Hi, Rather than storing Image in Session variable donot u think it is good to store the image path in Session.try this way....