You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to read Multipart file but getting below exception-
Caused by: java.io.FileNotFoundException: MultipartFile resource [file] cannot be resolved to absolute file path
I am using below code to read file-
Workbook workbook = StreamingReader.builder()
.rowCacheSize(100) // number of rows to keep in memory (defaults to 10)
.bufferSize(4096) // buffer size to use when reading InputStream to file (defaults to 1024)
.open(multipartfile.getResource().getFile());
When I am passing input stream its working fine. For performance purpose I want to pass file object to open method.
Any suggestions would appreciate.
The text was updated successfully, but these errors were encountered:
I am trying to read Multipart file but getting below exception-
Caused by: java.io.FileNotFoundException: MultipartFile resource [file] cannot be resolved to absolute file path
I am using below code to read file-
When I am passing input stream its working fine. For performance purpose I want to pass file object to open method.
Any suggestions would appreciate.
The text was updated successfully, but these errors were encountered: