android: get thumbnail from blobstore image

learner

I have an appengine connected android project. It's using endpoints. Anyway, I have some images in the blobstore. The android app has the url to each image. Normally, android needs a full image. But for my GridView I want to display a number of thumbnails. I know how to fetch images from a server (here the blobstore). My question is, is there a way to ask the blobstore to send me a thumbnail of an image? The call needs to come from the android side.

A_Porcupine

You could use get_serving_url()

You can use it to generate a link to the image in the blobstore and can specify the size of its "longest dimension ... preserving the original aspect ratio":

images.get_serving_url(your_blob_key,size=300)

This will produce a URL like this: http://lh6.ggpht.com/iQLnaVoMEhOWzMummf_PzD8frysTBIP6FsTCYpEuf0FA8KaK72T0zreND_pi4vZyUJQvv72x_rXLisIJOiXbb2IWzBc=s300

As you can see, setting size=300 simply adds =s300 to the end of the URL, so you could skip adding this and just add =s300 to the url in your app.

Be aware that this creates a "Public but not guessable URL". This essentially means that anyone could potentially access the link generated if they have the URL.

The other issue with this is that you would need to generate the link from within App Engine. However if you NEED to be able to just access it directly through the app you could generate the link during upload and store this in the datastore along with the blobstore key. You could then send this link to the app, in-place of the existing link being sent.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

get Thumbnail image from wikimedia commons

From Dev

How to get image thumbnail from given link?

From Dev

Get Video Thumbnail from specified postion - Android

From Dev

How to get a low res image, or Thumbnail from the ALAssetRepresentation in Swift

From Dev

How to get thumbnail image of video picked from UIPickerViewController in Swift?

From Dev

Google images: get large image URL from thumbnail URL

From Dev

How to get thumbnail image of video from ALAsset in iOS?

From Dev

Get / Make thumbnail image from video url getting in API response

From Dev

Android:Retrieving Image or Thumbnail from ContactsProvider for API level 10

From Dev

Extracting and using Image Thumbnail from larger picture in android app

From Dev

Android:Retrieving Image or Thumbnail from ContactsProvider for API level 10

From Dev

how to save a image from js client to blobstore?

From Dev

Store image to Blobstore from android client and retrieve blobkey and upload url to store in Datastore. - GAE

From Dev

How to get thumbnail image in wordpress

From Dev

Create thumbnail image for PDF in Android

From Dev

Create thumbnail image for PDF in Android

From Dev

Video thumbnail image from directory

From Dev

Video thumbnail image from directory

From Dev

How to get content type from blobstore by blobkey?

From Dev

how to download file from google blobstore to android

From Dev

Best way to stream from AppEngine blobstore in Android?

From Dev

how to download file from google blobstore to android

From Dev

how to get the thumbnail image of an uploaded image in angularjs

From Dev

How to get video thumbnail in android?

From Dev

Display image thumbnail of image selected from filepicker

From Dev

Get thumbnail from Youtube and save

From Dev

How get the thumbnail from youtube

From Dev

Android - Thumbnail from video file

From Dev

Get vimeo thumbnail image through SSL

Related Related

  1. 1

    get Thumbnail image from wikimedia commons

  2. 2

    How to get image thumbnail from given link?

  3. 3

    Get Video Thumbnail from specified postion - Android

  4. 4

    How to get a low res image, or Thumbnail from the ALAssetRepresentation in Swift

  5. 5

    How to get thumbnail image of video picked from UIPickerViewController in Swift?

  6. 6

    Google images: get large image URL from thumbnail URL

  7. 7

    How to get thumbnail image of video from ALAsset in iOS?

  8. 8

    Get / Make thumbnail image from video url getting in API response

  9. 9

    Android:Retrieving Image or Thumbnail from ContactsProvider for API level 10

  10. 10

    Extracting and using Image Thumbnail from larger picture in android app

  11. 11

    Android:Retrieving Image or Thumbnail from ContactsProvider for API level 10

  12. 12

    how to save a image from js client to blobstore?

  13. 13

    Store image to Blobstore from android client and retrieve blobkey and upload url to store in Datastore. - GAE

  14. 14

    How to get thumbnail image in wordpress

  15. 15

    Create thumbnail image for PDF in Android

  16. 16

    Create thumbnail image for PDF in Android

  17. 17

    Video thumbnail image from directory

  18. 18

    Video thumbnail image from directory

  19. 19

    How to get content type from blobstore by blobkey?

  20. 20

    how to download file from google blobstore to android

  21. 21

    Best way to stream from AppEngine blobstore in Android?

  22. 22

    how to download file from google blobstore to android

  23. 23

    how to get the thumbnail image of an uploaded image in angularjs

  24. 24

    How to get video thumbnail in android?

  25. 25

    Display image thumbnail of image selected from filepicker

  26. 26

    Get thumbnail from Youtube and save

  27. 27

    How get the thumbnail from youtube

  28. 28

    Android - Thumbnail from video file

  29. 29

    Get vimeo thumbnail image through SSL

HotTag

Archive