Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6986661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:50:17+00:00 2026-05-27T18:50:17+00:00

How do you return the blob key from a blob store? and subsequently return

  • 0

How do you return the blob key from a blob store? and subsequently return the image URL?

Example code:

class Next(webapp.RequestHandler):
    def get(self):
        userTable_name=self.request.get('userTable_name')

        data  = db.GqlQuery("SELECT * "
                                "FROM userTable "
                                "WHERE ANCESTOR IS :1 "
                                "ORDER BY date DESC LIMIT 10",
                                userTable_key(userTable_name))

        self.response.headers['Content-Type'] = 'text/plain'


        for user in data:
            blobURL = get_serving_url(user.imageblob.key(), size=None, crop=False)
            self.response.out.write(blobURL)

I’m using a GqlQuery to return a set of Blobs (i.e. user.imageblob) and for each blob i need to determine the BlobKey. From what I can tell, “user.imageblob.key()” does not return the blobkey…?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:50:17+00:00Added an answer on May 27, 2026 at 6:50 pm

    Worked it out! As it turns out, I was confusing “adding an image to the datastore as a blob” vs vs adding an image to the blobstore.

    a BlobReferenceProperty references an object uploaded and stored in
    the blobstore while a BlobProperty stores blob data directly in the
    datastore. see: How to use get_serving_url in appengine?.

    Hence, get_serving_url() and user.imageblob.key() were incorrectly pointing to the datastore as opposed to the blobstore.

    For examples of adding images to the blobstore see: http://code.google.com/appengine/docs/python/blobstore/overview.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For example, this code: from flask import session @app.route('/is_logged_in/') def is_logged_in(): return 'user' in
i have store file in Blob container as below code i.e: CloudBlob blob =
My MySQL DB table holds a BLOB image with image_id as key. I am
What return type should one return from a method that is getting rows from
Using SQL Server 2008. Example table : CREATE table dbo.blobtest (id int primary key
I am currently uploading images pasted from the clipboard with the following code: //
To store a complex object to Datastore i'm currently using this approach: class PickleProperty(db.Property):
When I upload an image file to a blob, the image is uploaded apparently
I have written a code for downloading a file(blob in database table).I get a
I'm trying to add a composite primary key to a class and having a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.