On Wed, 20 Oct 2010, mdirkse wrote:
Apparently the openxml4j code can handle the file, just not when it's presented as an inputstream. My problem is that, in my code, I can't get at the file, and have to use the inputstream. So how do I prevent it from throwing an OOME whilst still using the inputstream?

Buffer it to a temporary file. Using an inputstream requires way more memory than using a file, because the underlying openxml4j needs to be able to seek within the zip structure, which for an inputstream means buffering

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to