Free Support Forum - aspose.com

Can't write to stream in Java?

It appears the current Java version doesn't support saving to OutputStream - the documentation lists a save(Stream, int) method, but that looks like a bleed from .NET as no Stream class can be found in com.aspose.words. I would expect a save(OutputStream, int) method instead. Is this an omission in the current library or is this not supported yet.

The context for this is trying to modify a document and stream the result to a browser.

Thx,

Pp

This has been corrected in Aspose.Words for Java 1.0.1. The Save method to OutputStream was added and Save to Stream was removed.

http://www.aspose.com/Products/Aspose.Words/javadoc/

Ok, but I only downloaded the Aspose.Total package yesterday - does it mean this bundle is behind the releases for individual products?

Thx,

Pp

Normally it should not, but it could occur that the bundle pack was not yet updated as the Aspose.Words for Java 1.0.1.0 was released only several days ago.

Please check the version of the Aspose.Words for Java package. If it is not 1.0.1 then please download the latest version from:

http://www.aspose.com/Downloads/Aspose.Words/Java/1.0.1.0/Default.aspx