How to read binary files using Document.LoadLanguageFromXml method

SyntaxEditor for Windows Forms Forum

Posted 12 years ago by Archana Soni
Version: 12.1.0304
Avatar

Hi,

We were using SyntaxEditor version 1.0 . Now we are in phase of upgrading to version 2012.1 . But during this phase we are evaluting trial version to checkout the output with upgraded SyntaxEditor.

We need to read data from an Binary File. In version 1 we were using LoadLanguageDomainFromBinary(..) method, But from the Trial version Document found that it has been combined in LoadLanguageFromXml(...) . When I tried to read binary file using LoadLanguageFromXml(..), I'm getting error "root element is missing from file..... ". It's obvious error, since it's binary file.


Is there way to read binary File using SyntaxEditor ?

How to use LoadLanguageFromXml(...) to read binary files ?

 

Thanks in Advance

Archana

Comments (1)

Answer - Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Archana,

I'm not sure that the new version can load files saved in the old binary format.  However in the new version you can specify an encryptionKey argument in the save/load methods that will encrypt/decrypt the contents of the file, thus making it similar to a binary file.


Actipro Software Support

The latest build of this product (v24.1.1) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.