I need to load an image stream (JPG) , to save later in PDF format.
However in some cases, the instruction
var image = Aspose.Imaging.Image.Load (input)
generates an exception of the “Image loading failed” with an inner exception of the System.OutOfMemoryException type.
Below is the stack trace
in Aspose.Imaging.Image. (StreamContainer, LoadOptions) in Aspose.Imaging.Image.Load (Stream stream, LoadOptions loadOptions) in Aspose.Imaging.Image.Load (Stream stream) in [...]
There some workaround or option to prevent the error?
What are there maximum file size that can be converted?
Attached the image file and the code used.