I didn’t make the image into binary form, but want to get that image data from database now.
So can you give so idea about that.
I have done like below to insert image:
FileDialog dialog = new OpenFileDialog();
dialog.InitialDirectory = @":D\";
dialog.Filter = "(*.jpg;*.gif;*.jpeg;*.bmp)| *.jpg; *.gif; *.jpeg; *.bmp";
if (dialog.ShowDialog() == DialogResult.OK)
{
imagename = dialog.FileName;
pictureBox1.Image = Image.FromFile(imagename);
}
dialog = null;
Then it also store in database but now I have to retrive the image in next form how can I do?
1 Answer