Is it possible to Upload/Download a file using REST or any other Web Service and send HTML code?
This has to be possible using: PHP, Java or ASP.
Is it possible to Upload/Download a file using REST or any other Web Service and send HTML code?
This has to be possible using: PHP, Java or ASP.
Yes...its possible.
It depends on the implementation on the server side though.
But if you just want an answer....its YES
http://blogs.msdn.com/b/uksharepoint/archive/2013/04/20/uploading-files-using-the-rest-api-and-client-side-techniques.aspx
I think this will be helpful. At least when it comes to Java. Actualy, have a look at whole tutorial
Here is an example how to do it by using Spring:
Add commons-io and commons-fileupload dependencies to your
pom.xml
. Configure multipart resolver in your servlet context xml file:This will be your JSP for upload of files (i.e.
fileUpload.jsp
):And this is controller:
yes its possible, need to use correct mimetype to achieve this. you can pass the string in response body if your using Rest...