Musich87
Musich87

Reputation: 572

How pass the file path to remote Web Service

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

Answers (1)

Rohit Shetty
Rohit Shetty

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

Related Questions