Unknown binary data compression in OneNote Online file format

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)

@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.

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();
}

@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.

@keshi8086 and @satyam2893

This is to inform you that we are going to release Aspose.Note for Java 19.7 (it will be published tomorrow). In this release, you can read sample file without problems and save it to pdf/html.
Please note, saving to one format is still not resolved.

We have published the Aspose.Note for Java v19.7, so might want to try it to test reading the sample file or to convert to PDF/HTML file format via Aspose.Note for Java v19.7: