Dear sir, i have the following code for storing images into database..i wanted to know how to retrieve the image from database...plz help me out regards thjis.
byte[] data = null;
FileInfo fi = new FileInfo(txtFile.Text);
long numBytes = fi.Length;
FileStream fstream = new FileStream(txtFile.Text, FileMode.Open, FileAccess.Read);
BinaryReader br = new BinaryReader(fstream);
data = br.ReadBytes((int)numBytes);
Storing and retrieving image from database
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Madhu KRank #1,514 · 1.1K reputationPosted Nov 21, 2010, 9:29 PM EST