Hi there,
We are getting out of memory error while trying to converting attached file into HTML content using ASPOSE API, even though the size of the file is not too large and could not find any large image embedded in it. Could you please help us understanding the cause of this issue? PFB the stack trace.
java.lang.OutOfMemoryError
at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:699)
at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1342)
at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1563)
at javax.imageio.ImageIO.read(ImageIO.java:1430)
at asposewobfuscated.bp.d(Image.java:191)
at asposewobfuscated.bp.a(Image.java:171)
at asposewobfuscated.bp.b(Image.java:158)
at asposewobfuscated.bp.b(Image.java:144)
at com.aspose.words.qy.us(ImageTransform.java:60)
We are using the old version of ASPOSE, the code to convert file into HTML content is as below.
Document destdocument = new Document(file_input_stream);
destdocument.getSaveOptions().setHtmlExportImagesFolder(strFolder);
destdocument.save(htmlStream, SaveFormat.HTML);
Regards,
Ashish
This message was posted using Email2Forum by aske012. (attachment)