How Can I Upload An Thumbnail Image (blob) At The Same Time As An Entity Into A Datastore In Google App Engine?
I Just started using google app engine today, and I have fallen in love with endpoints. I made one very easily that will store an object in the datastore that just has a few strin
Solution 1:
Well you can use ImageService API in GAE to serve your images of different sizes and also you can apply various transformations on those images.
I am sharing you some code as well below so you will understand how I am serving the image urls using the stored blobkey.
StringblobKeyString= blobKey.getKeyString(); // Returned value of blobkey when upload is done.ImagesServiceservices= ImagesServiceFactory.getImagesService();
ServingUrlOptionsserve= ServingUrlOptions.Builder.withBlobKey(blobKey);
StringimageUrl= services.getServingUrl(serve);
Post a Comment for "How Can I Upload An Thumbnail Image (blob) At The Same Time As An Entity Into A Datastore In Google App Engine?"