Free Support Forum - aspose.com

Adding picture as BufferedImage

Is there a way to create a new Picture with a BufferedImage instead of a InputByteArrayStream?

We have a web application that will produce presentations with 50 to 200 slides based on the user's input. While profiling the application with JProfiler we noticed that Aspose eventually puts the image back in to a BufferedImage. We have a charting framework that produces the BufferedImages that we are placing in the presentation.

If there was an additional constructor:
new Picture(BufferedImage)
would that help help remove some additional work going from BufferedImage to InputByteArrayStream to BufferedImage?

Thanks!

Please check last hot fix. It doesn’t convert images from byte array at all for better perfomance.
But now it’s possible to add jpg and png only.
We will add possibility to create Picture from Image or BufferedImage little later.