Closed GoogleCodeExporter closed 8 years ago
Are you using gwtupload-gae.jar and extending AppEngineUploadAction?
Anyway, AppEngine is a very experimental feature in gwtupload due to the strict
restrictions of the GAE platform.
Original comment by manuel.carrasco.m
on 23 Aug 2010 at 1:38
Issue 70 has been merged into this issue.
Original comment by manuel.carrasco.m
on 23 Aug 2010 at 1:38
I am using gwtupload-gae.jar. not extending AppEngineUploadAction.
I dug around it and found that I might need to make a custom FileItemFactory
which does not make use DiskFileItem.
Well I am now dropping gwtupload-gae.jar and going to use gwt FileUpload for
simple upload and using blob to store the images in datastore.
I want to use Google App Engine to host my web application.
Original comment by dagarwa...@gmail.com
on 23 Aug 2010 at 1:43
gwtupload + gwtupload-gae has the option of using blobstore, unfortunately
there is no way to track the upload progress.
Original comment by manuel.carrasco.m
on 23 Aug 2010 at 1:53
Ok Thanks,
Any link to the example how to use blobstore using gwtupload + gwtupload-gae
would be great.
However, I am not using Blobstore but following is the way I am doing it :
ServletFileUpload upload = new ServletFileUpload();
FileItemIterator iter = upload.getItemIterator(request);
FileItemStream imageItem = iter.next();
InputStream imgStream = imageItem.openStream();
Blob imageBlob = new Blob(IOUtils.toByteArray(imgStream));
and then passing this blob to JDO.
there is a method Blob.getBytes() which might be used in some way to send the
progress back to the client
Original comment by dagarwa...@gmail.com
on 23 Aug 2010 at 2:03
Original issue reported on code.google.com by
dagarwa...@gmail.com
on 22 Aug 2010 at 6:35