Take a look into Gwtupload <http://code.google.com/p/gwtupload/>, it has
examples and server code which can help you.

Cheers
Manolo

On Wed, Jan 13, 2010 at 2:53 PM, Alex <[email protected]> wrote:

> The JavaDoc for the FileUpload GWT widget contains an example of the
> client side of the interaction.You'll get back the html/text returned
> by whatever object on the server processes the request. I imagine that
> this will be the name that should be used by the client to request the
> image in the Image object. So the flow would be, form is submitted,
> file data received by server and stored in some location, server
> returns the url under which the image is available, client receives
> FormSubmitCompleteEvent and uses text it contains to set the url of
> the Image object, Image object makes request to server for image.
>
> On Jan 13, 6:06 am, Abdullah Shaikh <[email protected]>
> wrote:
> > To upload image to your server you need to use FormPanel and set some
> > properties of FormPanel.
> >
> > FormPanel form = new FormPanel();
> > form.setAction("PATH OF YOUR SERVLET");                  - this servlet
> will
> > get the image data
> > form.setEncoding(FormPanel.ENCODING_MULTIPART);  - to send binary data
> > form.setMethod(FormPanel.METHOD_POST);
> >
> > form.setWidget("your widget which contains FileUpload control");
> >
> > - Abdullah
> >
> >
> >
> > On Wed, Jan 13, 2010 at 5:14 PM, Juan M.M.M. <[email protected]>
> wrote:
> > > Yes I understand what u say. I will try to, I don't know how but I
> > > will try it.
> >
> > > P.D.: I did it in a web application with C#.
> >
> > > Thanks!!!
> >
> > > --
> > > 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]<google-web-toolkit%[email protected]><google-web-toolkit%2Bunsubs
> [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]<google-web-toolkit%[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