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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:10:19+00:00 2026-05-28T20:10:19+00:00

I am using the blobstore to upload and download files in the python version

  • 0

I am using the blobstore to upload and download files in the python version of Google App Engine. I understand how to write objects to the blobstore line-by-line and I understand how to POST and download a blobstore item, but how do I read data back out of the blobstore line-by-line if all I have is the blobstore key?

file_name = files.blobstore.create(mime_type='application/octet-stream')

with files.open(file_name, 'a') as f:
    f.write("data")

files.finalize(file_name)
# Get the file's blob key
blob_key = files.blobstore.get_blob_key(file_name)

#starting with the blob_key, read from the blobstore line-by-line.
# ???
#with files.open() as f:
#foo = f.read()
  • 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-28T20:10:20+00:00Added an answer on May 28, 2026 at 8:10 pm

    I think you need the blob reader. Here is an example of use:

    from google.appengine.ext import blobstore
    
    blob_reader = blobstore.BlobReader(blob_key)
    for line in blob_reader:
        process_line(line)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to create an app using python on google app engine to
I wrote a simple webapp using google app engine in python that allows users
I'm using AppEngine to store some pickled python objects in my app. I want
I'm using App Engine with Python. In order to store the images of my
I am using the python version of Google AppEngine. I want to be able
Using PyObjC , you can use Python to write Cocoa applications for OS X.
I am trying to upload a file in GAE using the Blobstore API. I
I'm working on an google app engine app that will have to deal with
When using get_serving_url(user.photoBlobKey) to return an image URL from the GAE Blobstore, the Google
I am working on getting lucene indexing working on Google App Engine. I am

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.