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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:01:26+00:00 2026-06-15T19:01:26+00:00

getServingUrl is a convenient way to get images from the AppEngine datastore, but it

  • 0

getServingUrl is a convenient way to get images from the AppEngine datastore, but it seems to want to auto-transform the image.

For example, if I do this:

ServingUrlOptions servingUrlOptions = ServingUrlOptions.Builder.withBlobKey(blobKey);
String payload = "{ \"image\" : \"" + mImagesService.getServingUrl(servingUrlOptions) + "\" }";

I get a URL to an image with resized dimensions. For example, if I upload a 960 x 640 image, the default URL will point me to a 512 x 341 image.

So, you say, apply a transform in the URL and set s960. This does return a 960 x 640 image, but it has been transformed — you can see artifacts in the image if you compare it to the original.

The server is storing the image appropriately, thanks to a technique I found here of doing a crop to the original size:

Image image = ImagesServiceFactory.makeImageFromBlob(blobKey);
Transform noOpCrop = ImagesServiceFactory.makeCrop(0, 0, 1, 1);
image = mImagesService.applyTransform(noOpCrop, image);                     
LOGGER.info("Stored image " + image.getWidth() + ", " + image.getHeight());

I haven’t actually looked to see if this contains the original bytes or not, but it doesn’t really matter because if I’m going to just be sending bytes back, I might as well just pull the data straight out of the store and set it as the payload of a custom image serving servlet.

Writing this I’m realizing it sounds more like a feature request than a question, so I’ll pose it this way: is there a better solution to serving original images than via a custom servlet?

  • 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-15T19:01:27+00:00Added an answer on June 15, 2026 at 7:01 pm

    You can add the =s0 to the end of the generated URL to get the original image.

    By default if you don’t add any parameters the image will have maximum size of 512px (same as if you would add =s512). You can read more about getServingUrl in the docs and the options that you have.

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

Sidebar

Related Questions

i am trying to post an image to wcf rest service from silverlight 4
I am doing image uploads as outlined in the documentation for the App Engine
I am doing image uploads as outlined in the documentation for the App Engine
I'm uploading some images to GAE's Blobstore. Upload goes succesfully and when i see
I want to create thumbs for blobstore files. I use code: String servingUrl =
I am migrating my application from master/slave to HRD and I realized one thing:
I'm trying to connect to REST web server and I don't know what is
I have a WCF service which takes a long time to process the first
I have a static method I have no control over: MyUtils.getServiceURL() which returns a
I am currently assigned on a task where I need to create a WCF

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.