Page 1 of 1

Testing file format

Posted: Mon Oct 07, 2013 10:18 am
by robbert
Is there a preferred method to retrieve the format of a file/stream. We use LoadRVFFromStream but the function returns true when using a stringstream containing plain html text.

Thanks in advance,
Robbert

Posted: Mon Oct 07, 2013 1:12 pm
by Sergey Tkachenko
LoadRVFFromStream should not return True for text files.

There is a method LoadFromStream that autodetects RVF/RTF/plain text.

RVF files must start from '-8 1 ' string.