hi,
how to convert picturebox.image to stream?
popskie
Printable View
hi,
how to convert picturebox.image to stream?
popskie
uh you asked a similar q in the other post. If you have an open stream and you want to save your image to that, Image.Save has an overloaded method that accepts a stream. As simple as that. For example:
add this on top of the code page:
using System.IO;
Code:FileStream fs = File.Create("C:\\foo.jpg");
pictureBox1.Image.Save (fs, System.Drawing.Imaging.ImageFormat.Jpeg);
fs.Close();
Mr Polite code is much easirer thanks.