Storing images in dataset

Hi

My project requirement is I want to add images in a temporary variable and bind it to the grid and then after that I want to store the image in a folder.

Can you suggest me some option to where I can store the images temporarily.
KaranGuptaAsked:
Who is Participating?
 
kaylanreilorConnect With a Mentor Commented:
Mainly there is System.Drawing.Image class coupled with the System.IO.MemoryStream class and/or some arry of bytes.
First, let's have a look to an example : http://bytes.com/groups/net-c/240875-loading-images-dataset
0
 
RyanAndresCommented:
Read the image using a filestream and store it as a byte array.
0
 
KaranGuptaAuthor Commented:
Hi

Don't you think this will create an overhead to convert the file into stream and then back to the original one
0
 
kaylanreilorCommented:
What you name "the file" is stored into the DB as a binary stream, or let say an array of byte. When binding from a DB from a program you always work with a copy, aren't you ? So now you can have several reference on the same data, I don't see a lot of overhead here.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.