// Save out to memory and get an
image from it to send back out the method. mm = new
MemoryStream(); bmPhoto.Save(mm,
System.Drawing.Imaging.ImageFormat.Jpeg); Image.Dispose();
bmPhoto.Dispose(); grPhoto.Dispose();
outimage = Image.FromStream(mm);