I’m trying to develop a web application in Java wherein I need to populate a database using a csv file. I’ve used csv reader to achieve this. The application is working like a charm as long as csv file is in the server where the application is located. While accessing the application from another site, I get an error saying that the file is not found. How do I read directly from the client machine or how to import the file to the server and then read from it? Any help would be greatly appreciated. Thanks!
Share
Uploading a csv file is same as uploading a normal file.. you can use html file input field for this. You will have to write a seperate server side implementation to receive the file and store it some where in the server.
Now you have the file with you for processing. Read it and update the database.
Hope this helps.