How can i save and upload the image in C# desktop application
A:
For a C# desktop application you can use the OpenFileDialog to allow the user to select the image like this:
OpenFileDialog dlg = new OpenFileDialog();
dlg.Filter = "Image Files (.jpg; .bmp; .tiff; .tif; .gif; .wmf; .emf; .png)|*.jpg; *.bmp; *.tiff; *.tif; *.gif; *.wmf; *.emf; *.png";
if (dlg.ShowDialog() == DialogResult.OK)
{
bmp = new Bitmap(filename);
}
And then once you have the bitmap you can "save and upload it", but I am not exactly sure what you mean by save and upload. You probably want to update this question with exactly what you mean by "save and upload".
Jeff Widmer
2009-08-01 10:01:27