Click here to Skip to main content
16,013,516 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i am insert image in binary format i.e. image type in sqlserver. now i want to retrieve that image on image control how i read that image.
Posted

Try this one:

byte[] picture;<br />
                    picture = (byte[])_DataTable.Rows[0]["Image"];<br />
                    MemoryStream _Stream = new MemoryStream(picture);<br />
                    pictureBox1.Image = Image.FromStream(_Stream);
 
Share this answer
 
try this link <a href="http://www.dotnettutorials.com/tutorials/database/save-retrieve-image-cs.aspx">here</a>
 
Share this answer
 
 
Share this answer
 
Check this[^] article.
 
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