On Wed, 21 Mar 2012, Efe Ozmen wrote:
I want to update (read data and add some parts) a package in memory. But open (java.io.InputStream in) method only allows reading. I don't want to use open (java.lang.String path) method beacuse of file IO. Is there any other way to do this?
I'm not sure I follow - you want to update a file, but you don't want to load from the file because of IO, and you'd rather buffer the whole thing into memory? You'll be much better off using the file if you can
Also, OPCPackage.open(InputStream) opens the file read/write, so I don't know why you think it's read only. That's exactly how things like XSSF and XWPF work when you construct them from a stream. When you're done, you'll just need to write the package out to a stream
Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
