Open OneNote docs where full path in longer than 260 characters => does not work


Hi Aspose team,

during processing of OneNote documents I am hitting limit that documents that are with long path cannot be opened due to:

"The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters."

Considering that there are some libraries which can process long path (for example, AlphaFS => http://alphafs.alphaleonis.com/) it will be great that you extend also Aspose components to be able to go around this crazy Windows limitation as this is certainly possible.
Can you please check?

Thanks,
Oliver

Hi Oliver,

Thank you for writing to Aspose Support team.

In presence of constructors that provide the capability to load documents from stream, I think implementing this as a new feature is not necessary. You can use the AlphaFS to load the document in FileStream and then use our API to load from this FileStream as shown in the following sample code.

Sample Code:

//using the AlphaFS library to laod the file
FileStream fs = Alphaleonis.Win32.Filesystem.File.OpenRead(“path to file”);

// Load the document into Aspose.Note.
Document oneFile = new Document(fs);

Thanks for tip, worked great :slight_smile: