Error: Unknown file format

Hi,

I am getting the below error while trying to save an stream object as Aspose Doc object.

Here i am trying to convert the .docx document bytearraay in to the form of a stream with the help of teh function(BinaryToStraemConverter) and then try to save the stream as DOc object.

It was working fine.. suddently it stopped working.. i am wondering why..

Please help me to do this.

Now it throwing an Error saying : Unknown file format. and showing the source as Aspose.dll

MemoryStream DocumentumStream = new MemoryStream();

DocumentumStream = this.BinaryToStraemConverter(DocumentumTemplateByteArray);

OutDoc = new Document(DocumentumStream); // Here it throwing the Error

Definition for BinaryToStraemConverter method:

public MemoryStream BinaryToStraemConverter(byte[] binaryArray)

{

MemoryStream stream_object_doc = new MemoryStream(binaryArray);

return stream_object_doc;

}

Hello,


Thanks for your request. Can you attach your input docx document for testing? I’m check it and help you.

Best regards,