I am using GWT to upload images to AppEngine server. This is the
timeline of events
1) RPC call to servlet which will get upload url from
blobstoreservice, and return it to client
2) set the upload url as the form's action variable.
3) user selects picture and clicks submit
4) Intercept submit event, do validation, and cancel the event if
values are wrong
5) Form POST goes to server, image is uploaded, and my callback url is
called.
6) My callback servlet stores the blobkey in its place in the
datastore, and then does response.sendRedirect("/servePic?blob-
key=abcdef");
7) ??????????????
8) on the client side Form.SubmitCompleteEvent is fired, with the
result of the POST in a String named result. What does this string
have? Sometimes it has image data in bytes, as created by the ServePic
servlet. Sometimes it has the following html
<img style="cursor: -moz-zoom-in;" alt="http://
<myappname>.appspot.com/servePic?blob-key=abcdef" src="http://
<myappname>.appspot.com/servePic?blob-key=abcdef" height="1"
width="1">
What's worse, is that behavior differs between sdk development and
when deployed.
What is going on, and how do I know what to do?
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" 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-appengine-java?hl=en.