Saving Image to OutputStream defined in documentation- but not available in library

The underneath documentation specifies that you can save images to an OutputStream but this feature seems to be completely missing in the Imaging library.

Creating, Opening and Saving Images|Documentation

Due to differences between Imaging and PDF library, the only choice left was to save to file and reload the image in PDF library. We want to avoid this writing to a hard drive and keep everything in memory.

Hi Annelore,


Please try the case with latest version of Aspose.Imaging for Java 2.9.0 as it contains the overloaded version of Image.save method that accepts an object of java.io.OutputStream. In case the problem persists, please provide us your code snippet along with environment details for further investigation.

My apologies, with your mention, I just noticed that I forgot to upgrade the Imaging library to the latest while upgrading the other Aspose libraries. I’ll switch to the latest version and try it out again. Thank you for the response.

Hi Annelore,


No problem at all. Please feel free to thoroughly test the new release, and contact us back in case you face any difficulty.