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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:16:53+00:00 2026-06-09T12:16:53+00:00

I am successfully posting an image to my Google AppEngine application using the following

  • 0

I am successfully posting an image to my Google AppEngine application using the following code:

  def post(self):

    image_data = self.request.get('file')
    file_name = files.blobstore.create(mime_type='image/png')

    # Open the file and write to it
    with files.open(file_name, 'a', exclusive_lock=True) as f:
      f.write(image_data)

    # Finalize the file. Do this before attempting to read it.
    files.finalize(file_name)

    # Get the file's blob key
    blob_key = files.blobstore.get_blob_key(file_name)
    self.response.out.write(images.get_serving_url( blob_key ))

However, when I browse the the URL outputted by get_serving_url(), the image is always at a reduced resolution. Why? I’ve checked and double checked that the image being posted is of the correct size (from an iPhone camera, so approx 3200×2400 resolution). Yet, the served image is always 512×384.

I’m fairly new to GAE, but I thought that the code above should store the image in the BlobStore rather than the datastore, circumventing the 1 MB limit.

Does anyone have any idea what could be going on?

Cheers,
Brett

  • 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-09T12:16:55+00:00Added an answer on June 9, 2026 at 12:16 pm

    Found a solution. Or at least something that works for me.
    My appending =sXX onto the end of the served URL, AppEngine will serve the image at the XX resolution. For instance, if the line:

    self.response.out.write(images.get_serving_url( blob_key ))

    returns:
    http://appengine.sample.com/appengineurlkey

    Then when calling the url above results, the image will be a lower resolution image,

    Then by calling the URL:
    http://appengine.sample.com/appengineurlkey**=s1600**

    the resulting served image will be at 1600x1200 resolution (or a similar resolution restricted by maintaining the aspect ratio).

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

Sidebar

Related Questions

I am successfully posting a form via ajax, using the following code; $.post( Page.do?source=ajax,
I am posting to wordpress in java using xmlrpc successfully using the following code
I'm successfully posting to my controller with the following code, however, success is never
I'm currently working on posting a file from a C# application to an image
I am using Twitter+OAuth in my app ...i am successfully posting the message or
So I successfully had my app posting scores to facebook using my account. But
I can successfully post an array to PHP using Ajax Post but I want
I successfully compiled the following program simple.cc: #include <gtkmm.h> int main (int argc, char
After successfully opening Pop3Folder , and retrieving messages from it, I then sometimes get
After successfully acquiring an oauth_token for a user, I am able to get successful

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.