On Wed, 22 Jun 2011, Rohit Sharma wrote:
The OPCPackage's open method uses an InputStream as the parameter, to construct this InputStream from an InputSource ( having a character stream) I use the ReaderInputStream class. After this conversion, when the processAllSheets method is called, the OPCPackage throws an exception while opening this InputStream ( happens for all xlsx files)
I'm not quite following you here, but I'm slightly worried you have the wrong idea
You should either pass the File to OPCPackage, or an InputStream that'll read the contents of the file. The exception you're getting indicates you're not passing a valid .xlsx file to OPCPackage, possibly because you're doing something odd with the inputstream
Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
