Can someone please clarify this for me. I am reading the developer page about the blobstore at https://developers.google.com/appengine/docs/java/blobstore/overview. I can't seem to wrap my head around the process of saving and retrieving blobs? It sounds like
Is that the process? Maybe it's because I have had a long day, but I just can't see it. If someone has an example they don't mind sharing, please post it. I just need to save images from android in the blobstore and then be able to retrieve them with blobkey or otherwise.
I have already look at
For the life of me, I don't know why they are not doing it for me.
I suppose some questions are:
Applications Overview
and see all the blobs that belong to my app the way I could in the datastore? I suppose a complete, working piece of code could help me see these answers.Part of my problem could be that I have never used servlet. I am presently using Google Cloud Endpoint for my api.
Actually there are two ways to upload to blobstore:
Using direct upload handler:
createUploadUrl(..)
and sends this url to client.multipart/form-data
POST to upload data to this url.Using blobstore FileService
API which is deprecated and should not be used any more:
FileService
API so save data to blobstore.Your description of the process is correct. The only step you miss is the first: the server side calls blobstoreService.createUploadUrl(redirecturl) to generate the URL to upload to. Then the handler at redirecturl will save the blob key to the datastore.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With