Problem when converting Doc to HTML

Hi,
I am converting doc to html , dont think in the best of the way .

Document document = new Document(doc);
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
document.save(outStream,SaveFormat.HTML);
System.out.println("HTML FORMAT ++++++++++"+outStream.toString());

The out I get is

1
Evaluation Only. Created with Aspose.Words. Copyright 2003-2008 Aspose Pty Ltd.

Confidentiality
You must maintain the confidentiality of information entrusted to you by the Company, and any other confidential information about the Company that comes to you, from whatever source, in your capacity as director, officer or employee except when disclosure is authorized or required by laws or regulations. Confidential information includes all non-public information that might be of use to competitors or harmful to the Company, if disclosed.
uniqueclauses.doc 1/30/2009

I get some garbage value in the start of the String.
Please let me know what to do .
Thanks,
Saumil

Hi
Thanks for your request. The “garbage value in the start of the String” is BOM (Byte Order Mark). You can remove it manually. For example, you can remove all characters before first ‘<’ character.
Best regards.

The issues you have found earlier (filed as WORDSNET-3087) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(7)