I am new to GWT and general web application.
I am making a GWT web application. One functionality it provides is to download file by clicking a button on the web page. Unfortunately, the file itself does not physically located on the server side. Server side needs to grab it through a REST call to another web service to get a InputStream of the file.
My question is that:
- How can I pass the stream to the client side so that the browser can start to download?
- Do I have to write the file physically on the server before start this?
Many thanks
EDIT: I have found this example: How to use GWT when downloading Files with a Servlet?
In this example, the file is physically located on the server side. The file I got from the web service via a stream is very large and I don't want to save them on my GWT server side. Any suggestions?