I have a need to write a Bitmap to a Stream, but get an error message on all
my attempts. I am doing something like the following:
Stream _appImage;
public frmCustomerFeed back(Bitmap bm)
{
InitializeCompo nent();
bm.Save(_appIma ge, System.Drawing. Imaging.ImageFo rmat.Jpeg); <== this
fails
//bm.Save("testim g.jpg", System.Drawing. Imaging.ImageFo rmat.Jpeg); <==
this works
ugPictureBox.Im age = bm;
}
Any suggestions?
my attempts. I am doing something like the following:
Stream _appImage;
public frmCustomerFeed back(Bitmap bm)
{
InitializeCompo nent();
bm.Save(_appIma ge, System.Drawing. Imaging.ImageFo rmat.Jpeg); <== this
fails
//bm.Save("testim g.jpg", System.Drawing. Imaging.ImageFo rmat.Jpeg); <==
this works
ugPictureBox.Im age = bm;
}
Any suggestions?
Comment