On Tue, 22 Jan 2008, teena21 wrote:
i am uploading an excel file using servlet. i use POIFS for this but when i read this it gives an exception java.io.IOException: Invalid header signature; read -6862622098023464182, expected -2226271756974174256
That means the inputstream you passed in was not a valid ole2 document stream
i get the input stream and i had extract header and tailer from that stream and pass anly excel data as an input toPOIFSFileSystem it throws an exception how can i resolve it
I'd suggest writing the file out to disk from your servlet, and try loading that into poi/excel. Once you have that working, your servlet code ought to be processing the input streams properly, and you can pass on to poi as normal. Until then, there'll be something wrong with your servlet
It's probably worth checking the list archives, lots of people have posted working servlets for working with excel files over the years
Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
