commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anurag Telang <>
Subject Apache FileStreaming: Problem using FileItemStream
Date Fri, 22 Feb 2008 15:16:26 GMT
Hi There,
I'm using FileStreaming API to upload my excel file because it is given on
the apache site that it is faster than the conventional apache FileUpload. 
Uing FileStreaming API my excel file gets uploaded properly and I get the
InputStream by calling the method openStream(). I now want to pass this
input stream to the constructor of
org.apache.poi.poifs.filesystem.POIFSFileSystem but the constructor of
POIFSFileSystem accepts only the FileInputStream and the input stream
returned by openStream() is not compatible for the constructor of
POIFSFileSystem and it gives IO error.
Actually I want to create an instance of POIFSFileSystem to pass in the
constructor of org.apache.poi.hssf.usermodel.HSSFWorkbook. Then I will use
HSSFWorkbook to read the data in my excel file.
Please help me to find out the way of doing this.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message