you can generate some metadata on serverside & send back to client (via
rpc) &  let client generate the path to your file & then either redirect
(with Window.assign(url) or let user click to the generated link to get the
file.
i dont think you can get binary input stream from client to get the file
directly with rpc

hth

On Mon, May 28, 2012 at 5:26 PM, Akis <[email protected]> wrote:

> Hi guys. I've got a question for you:
>
> i need to create a web app which, starting from an input string given
> by the user through the browser, generates a file that has to be
> downloaded by the user self.
>
> My approach would  be the following: the input string is sent by a RPC
> to a server-side class that creates the file from the given string,
> and then the file is sent to the client-side, ready to be downloaded.
>
> Now, in "classic servlet way", i would use a HttpServetResponse to set
> the header, the content type, and attach the file... how can i do this
> with GWT?
>
> Thank you mates!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to