I needed to get at least single character in response body when uploading a
file. (Without that SwfUpload did not work due some Flash issue.)
--
MyWrappingServlet
{
doPost(req, res)
{
// ...
URL uploadUrl = new
URL(blobstoreService.createUploadUrl("successPath"));
copyRequestDataToUrl(req, url);
res.getOutputStream().print("."); // the magic character
}
// this method applies the request data and headers to given URL
copyRequestDataToUrl(req, url)
{
// ...
}
}
--
On Mon, Jun 14, 2010 at 7:49 PM, Vishal Singh <[email protected]> wrote:
> Can you please elaborate on how to wrap the blobstoreservice servlet.
> Are you suggesting writing a Filter ?
>
> Thanks
> Vishal
>
> On Jun 14, 10:43 pm, Jaroslav Záruba <[email protected]>
> wrote:
> > For different reasons I had to 'wrap' the blobstoreservice servlet with
> my
> > own one. Maybe it could work for you as well.
> >
> >
> >
> > On Mon, Jun 14, 2010 at 7:19 PM, Vishal Singh <[email protected]>
> wrote:
> > > I am using GWT and Google App Engine Java for my application. I have a
> > > profile screen where user enters profile information like name, age
> > > and address, saves it and gets success or failure message. I developed
> > > this initial application using GWT-RPC and it worked fine. I had a new
> > > requirement where I have to store image of the user. I am using
> > > BlobstoreService to store images. This has created complications in
> > > the flow. I had to use FormPanel as it is the only way to do a
> > > FileUpload in GWT. The BlobStore service servlet expects a redirect on
> > > completion. As a result it cannot now return any status back to my GWT
> > > application once the profile is saved. Is there easy to store images
> > > using GWT along with other form fields and show a status message back
> > > to user once the profile is saved.
> >
> > > --
> > > 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.