Unknown binary data compression in OneNote Online file format


#1

Hi

I am using the java library and see the following exception when trying to extract a one note file.

class com.aspose.note.internal.UnsupportedFileFormatException: Unknown binary data compression in OneNote Online file format.
com.aspose.note.internal.aJ.d(Unknown Source)
com.aspose.note.internal.g.b(Unknown Source)
com.aspose.note.internal.eq.b(Unknown Source)
com.aspose.note.internal.eq.a(Unknown Source)
com.aspose.note.internal.hN.b(Unknown Source)
com.aspose.note.internal.eZ.a(Unknown Source)
com.aspose.note.internal.eZ.a(Unknown Source)
com.aspose.note.internal.M.a(Unknown Source)

com.aspose.note.m.a(Unknown Source)
com.aspose.note.Document.a(Unknown Source)
com.aspose.note.Document.(Unknown Source)
com.aspose.note.Document.(Unknown Source)
com.aspose.note.Document.(Unknown Source)

This is the same error in 17.11 and the 18.3 version. Please see the file attached here.
qa1.one.zip (1.4 MB)


#2

@keshi8086,

We were able to observe the issue and have logged it as NOTEJAVA-434 for further investigations at our end. We’ll update you here once there is some information or a fix version available in this regard.


#3

Hi Kashif, I am getting same over and again , don’t know why.

@here extracting note content per page. Suggest me if you have better solution.

lass com.aspose.note.internal.UnsupportedFileFormatException: Unknown binary data compression in OneNote Online file format.
com.aspose.note.internal.aK.d(Unknown Source)
com.aspose.note.internal.g.b(Unknown Source)
com.aspose.note.internal.ey.b(Unknown Source)
com.aspose.note.internal.ey.a(Unknown Source)
com.aspose.note.internal.hV.b(Unknown Source)
com.aspose.note.internal.fh.a(Unknown Source)
com.aspose.note.internal.fh.a(Unknown Source)
com.aspose.note.internal.N.a(Unknown Source)
com.aspose.note.m.a(Unknown Source)
com.aspose.note.Document.a(Unknown Source)
com.aspose.note.Document.(Unknown Source)
com.aspose.note.Document.(Unknown Source)

private String getContent(Document document) {
int count=0;
HtmlSaveOptions options = new HtmlSaveOptions();
options.setExportCss(ResourceExportType.ExportEmbedded);
options.setExportImages(ResourceExportType.ExportEmbedded);
options.setExportFonts(ResourceExportType.ExportEmbedded);
options.setPageIndex(count++);
options.setPageCount(1);
options.setDocumentPerPageGeneration(true);
options.setCssPerPageGeneration(true);
options.setFontFaceTypes(FontFaceType.Woff);
OutputStream opstream = new ByteArrayOutputStream();
try {
document.save(opstream, options);
} catch (IOException e) {
log.error(“IOException occur while converting the content into outputStream for document {}”, document.getGuid());
throw new AsposeProcessException(“failed parse the content into outputStream”, e);
} catch (Exception e) {
log.error(“Unknown Exception occur while converting the content into outputStream for document {}”, document.getGuid());
throw new AsposeProcessException(“failed to get content”, e);
}
return opstream.toString();
}


#4

@satyam2893,

This is a complex issue and some progress has been made on it but it has not been resolved yet. We will update you as soon as the issue is resolved.