On Sun, 11 Dec 2011, Ilia Ternovich wrote:
Sorry, we're performing some Excel logic inside EJB (JBoss AS 6.0.0) so no
files -- only streams.

Ah, your example was a FileInputStream though

Is there any way to force using NPOIFS? We do need to overcome original exception (e.g. we don't want to use JExcelApi for some files and POI for others).

Not directly as now, but you can do it. If you take a look at the code in WorkbookFActory for opening with a file, if you replicate that but with an InputStream then it should work for you

Nick

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

Reply via email to