Click here to Skip to main content
16,013,322 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

Check this[^] article.
 
Share this answer
 
 
Share this answer
 
try this link <a href="http://www.dotnettutorials.com/tutorials/database/save-retrieve-image-cs.aspx">here</a>
 
Share this answer
 
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
 

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