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 8265235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:43:44+00:00 2026-06-08T04:43:44+00:00

all i am trying to do is figure out how serve a blob, by

  • 0

all i am trying to do is figure out how serve a blob, by using the blobreferenceproperty stored in the datastore.

class data(webapp2.RequestHandler): 
def get(self):
    a = db.GqlQuery("SELECT * FROM UserPhoto")
    blob = a[0].blob_key()

    self.redirect('/Serve/%s' % blob())

class ServeHandler(blobstore_handlers.BlobstoreDownloadHandler):
def get(self, photo_key):
    if not blobstore.get(photo_key):
        self.error(404)
    else:
        self.send_blob(photo_key)

and the error i get is

TypeError: 'BlobInfo' object is not callable
INFO     2012-07-22 16:28:42,342 dev_appserver.py:2884] "GET /data HTTP/1.1" 500 -

and now im completely lost.

im fairly sure im not far away, because my code is only slightly modified from the working version of the tutorial, but ive tried everything i can think of and i would appreciate a nudge in the right direction.

thanks

  • 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-06-08T04:43:46+00:00Added an answer on June 8, 2026 at 4:43 am

    Change blob() to blob in the redirect line.

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

Sidebar

Related Questions

I've been banging my head against the wall all night trying to figure out
Trying to figure out how to write a jquery formula that will sum all
I'm trying to figure out how to list all files of an FTP folder
I am trying to figure out a way to force all of my Interfaces
I'm trying to figure out how to link all the views I've made in
I am trying to figure out how to count all of the numbers into
I've been trying to figure out how to do this all afternoon, but can't
I am trying to figure out a way for somehow fetching the all the
I'm trying to figure out how to use the java.util.logging features. All of the
I'm trying to figure out why this works: >>> comments = Comment.objects.all() >>>[c.content_object for

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.