Reputation: 572
I have a question.
I have a remote Web Service (Tomcat 7, Netbeans) that accepts in input a file (Excel, XML) from my client. Now, I want to read this file and I want to extract the information of the file in Java Code. How can I pass the path of the file to my Web Service? I have to make some kind of serialization?
Upvotes: 0
Views: 482
Reputation: 341
Here's a nice article on uploading files using REST API's - http://www.javatutorialscorner.com/2013/12/file-upload-using-jax-rs-restful.html
And this is a simple example using a servlet - http://www.tutorialspoint.com/servlets/servlets-file-uploading.htm
Hope this helps!!!
Upvotes: 1