save file locally

hi!

I have a method that creates a file. The file is saved in the server machine right? I maybe wrong.

No, the file is created on the local machine.

Have a look at plugins.file.streamFilesToServer() if you want to transfer a local file to the server.

ptalbot:
No, the file is created on the local machine.

Have a look at plugins.file.streamFilesToServer() if you want to transfer a local file to the server.

It worked. Thanks!

However, I would like to create files(SQLs) in the server and place the contents(insert scripts) for I think it will be faster, placed it in a zip file. I renamed my solution to become a web service and it did create all the needed files in the server machine. Question, how can I attach the zip file to the response?

web service as a WebClient? Or a restfull service/client?

jcompagner:
web service as a WebClient? Or a restfull service/client?

The file did save on the server machine. I did test it using http://:8080/examples/restfulws_testpage.html and passing the URL. This is a restful service/client approach right? But I was unlucky downloading it to the client machine. How can the restful web service pass a zip file back to the client?

Why not place the file on a server dir in the ROOT dir of the server so that you can just download it through an URL

jcompagner:
Why not place the file on a server dir in the ROOT dir of the server so that you can just download it through an URL

The users are not that computer savvy and would appreciate if everything(including the download of the file) can be done with just one click of a button. Please advice if you have any suggestion how to go about this scenario. thanks!