0

I am supposed to read an excel file on the server and store it in the database as a table. I was using ApachePOI to read the excel file by picking up the excel file from the hard disk. Imagine a client uploads a file and sends it to a server, the server wouldn't have access to the hard disk of the client. So now I want to send it as a multipart form-data and then read it on the server.

I have been reading on the internet as well as Stackoverflow but have not found an answer(although there are examples to read a text file).

Please guide me. Thank you.

1
  • read this Commented Aug 21, 2017 at 16:28

1 Answer 1

2
  1. Accept the uploaded multiPart File in your servlet.
  2. The servlet should then write the uploaded file to the server's disk.
  3. The servlet can then read the uploaded file from the server's disk.
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.