Click here to Skip to main content
15,904,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
hi friends i have store image in bite formate in database and now i want to fetch this bite in asp.net variable so how to do it please help me
Thanks to advance
Posted
Updated 24-Sep-13 21:01pm
v2
Comments
Eduard Keilholz 25-Sep-13 3:00am    
How often does this question appear on the codeproject. Please search the website before blindly posting a new question. That's just lazy...

1 solution

Hi,


byte[] data = (byte[]) dt.Rows[0]["IMAGE"];
MemoryStream ms = new MemoryStream(data);
pictureBox1.Image = Image.FromStream(ms);
 
Share this answer
 

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