Downloading image blob from Google's App Engine
Last time we have seen how to upload an image to app engine. Now its time to fetch it back. There are 2 ways to do that. 1. Using serve() 2. Using urls generate for each blob. I tried using 1st method, but it did not work. So tried out second method which did work. Following are the details of that implementation. First get the url for download for each blob. To do that you need blob key of your blobs. In my case I have saved blob keys in a separate database entity. Blob key is returned when you create new blob. String[] array = getBlobKeyByProblemId(problemId); if (array != null && array.length > 0) { String[] urls = new String[array.length]; for (int i = 0; array != null && i < array.length; i++) { ImagesService imagesService = ImagesServiceFactory.getImagesService(); BlobKey key = new BlobKey(array[i]); ServingUrlOptions options = ServingUrlOptions.Builder.withBlobKey(key).secureUrl(true); urls[i] = im...