Robert, one issue I ran into is strange. I am able to save and restore, and the image appears to be correct. However, whenever I hit Save again, I get this error on the line bitmap.Save(stream, ImageFormat.Bmp);. I'm curious what I should review about the image restored back from the db to identify the cause. The error is:
System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+. \r\n at System.Drawing.Image.Save (Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)\r\n
Thank you!
- duplicates
-
CSHARP-947 Programming with MongoGridFS and chunks in C#
-
- Closed
-