Couldn't save - overflow exception

Jul 12, 2012 at 5:39 PM

I consistently receive the "overflow exception" when trying to create new metadata on some files. This almost always occurs on larger image files but it works fine on many larger files.

I've tried some of the suggested fixes for apartment threading but this component seems to check for that anyway.

Any ideas as to what it happening?

The error occurs at the point below:

// Open Output File
using (Stream outputStream = File.Open(outputFile, FileMode.Create, FileAccess.ReadWrite))
{
	jpegBitmapEncoder.Save(outputStream);
}

May 16, 2014 at 10:37 AM
Why don't you follow this guide to save an image?