PRASANTA BISWAS

PRASANTA BISWAS

  • NA
  • 27
  • 9.3k

Not able to Save and Retrieve Image

Aug 18 2014 5:59 AM
Dear All
 
I added below code onto Photo Load Click Event. Photo is added but Size is not Actual. So, How to fixed size. I am managing Path but How to retrieve Image from Database.
 
string path = null;
OpenFileDialog fileDialog = new OpenFileDialog();
fileDialog.ShowDialog();

path = fileDialog.FileName;
txtPhotoID.Text = path;
PictureBox picBox = new PictureBox();
picBox.Image = new Bitmap(fileDialog.FileName);
picImage.Controls.Add(picBox);
picBox.Height = 300;
picBox.Width = 400;
picBox.BackgroundImageLayout = ImageLayout.Zoom; 
 
 

Answers (4)