on 01-23-2018 1:41 PM
In local program is recognizing file name. But it isn't working when it is deployed on SCP. I need help in understanding.
I did use InputStream rather than filename. It started working fine.
final InputStream fileInput = filePart.getInputStream();
XSSFWorkbook workbook = new XSSFWorkbook(fileInput);
Thank you,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, Shaik. It there an error message show up? I think you should check your file path It might be the program is not able to find the excel files. thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
org.apache.poi.openxml4j.exceptions.InvalidOperationException: Can't open the specified file input stream from file: 'TestExcel.xlsx' is the ERROR on SCP. Same program works fine in local host. I'm providing file name as input "XSSFWorkbook workbook = new XSSFWorkbook(new File(fileName))".
Program is deployed on SCP from Eclipse I'm running on SCP.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.