If I'm using GWT File widget and form panel, can someone explain how to handle upload on blobstore on google application engine??
相关问题
- Upload file to Google Cloud Storage using AngularJ
- How to run GWT in production mode
- Google Data Studio connect to cloud datastore
- codeigniter $this->upload->do_upload() = false
- Google Guava 15.0 Error with GWT 2.5.1?
相关文章
- Spring NamespaceHandler issue when launching Maven
- File Upload of more than 4GB
- The current request is not a multipart request - S
- Input file in laravel 5.2?
- Annotation for GWT compiler to ignore method
- getComputedStyle like javascript function for IE8
- Uploading to Blobstore gives a Java heap OutOfMemo
- Why does my form not upload files in Internet Expl
Google blobstore is specifically designed to upload and serve blobs via http. Blobstore service (obtained using
BlobstoreServiceFactory.getBlobstoreService()
) generates http post action for you to use in the html form. By posting file to it you upload your blob to the blobstore. When you generate this action you provide a path to the handler (servlet) where you have access to uploaded blob key:Note, that "data" is the file field in your form. All you have is a key to the blob (your file). From here you take control - you can save this key for later and/or immediately serve the blob on a page (using key):
Of course, for details see Google documentation.
One nice feature of the blobstore that it's integrated with Google Mapper (rudimentary map-reduce) service (work in progress) which lets you process files uploaded as blobs line by line: http://ikaisays.com/2010/08/
Take a look at gwtupload. There are examples on how to use it with GAE Blobstore.