Hello Will,

In local dev, the google cloud storage API is faked. All images uploaded in 
local are stored in the folder war/WEB-APP/appengine-generated
When you use the servingUrl in local, you get a URL like: 
http://0.0.0.0:8080/_ah/img/encoded_gs_key:L2dzL25leHRpbml0L2Q3dzZ1ODRqXzEzOTQ5NjY5NzAyNTE


You are trying to get a URL for a real GCS file, that is not in your 
appengine-generated directory.


Cheers



El viernes, 14 de marzo de 2014 02:05:27 UTC+1, Will Prater escribió:
>
> Im running a local dev server and using image.ServingURL to create a url 
> from a BlobKey that is stored in Google Storage.  Should this url return an 
> image on a dev server?  
>
> Im getting an error like such: "Could not find blob with key 
> encoded_gs_file:<long_blob_key>"
>
> I've confirmed the images are on Google Storage.
>
> Using `blobstore.BlobKeyForFile(c, storageKey)` where `storageKey` is 
> "/gs/" + <id property of response from uploading to Cloud Storage>.  This 
> is how the docs describe it, but Im not sure if I should be using the id 
> property from the response object, or "/gs/<bucketname>/<filename> .  I've 
> tried both and they both give me the error.
>
> Am I supposed to get local image serving urls from my dev server when used 
> with Google Storage?  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to