Click here to Skip to main content
15,893,508 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
picturebox.image insert sql save than
my problam search sql picture c#

What I have tried:

pictureBox1.Image=(dr["pict"].ToString());
Posted
Updated 23-Jul-18 23:02pm
v2

1 solution

In order to fetch the image and place it into a picture box, you need to assign the byte data into the Image property, not convert it to string.

For example, have a look at c# - How to load image from SQL Server into picture box? - Stack Overflow[^]
 
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