Hi Aspose,
I’m getting this error message when I try to load word document from stream.
Unknown file format.
Description: HTTP 500. Error processing request.
Stack Trace:
Aspose.Words.UnsupportedFileFormatException: Unknown file format. |
And this is my codes:
Line 1. Stream wordStream = new MemoryStream( myWordBuffer ); // byte[] myWordBuffer
Line 2. Document doc = new Document( wordStream );
The above error raised on line2. It seems I cannot get a word document object from stream.
My development environment:
1. Monodevelop 2.4
2. Aspose.Words.dll version 11.9.0
3. OS
-Version-
Kernel : Linux 2.6.38-8-generic (i686)
Compiled : #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011
C Library : Unknown
Default C Compiler : GNU C Compiler version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)
Distribution : Ubuntu 11.04
This codes were working fine with monodevelop in Windows environment.