简体   繁体   中英

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?

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!!!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM