Glad it works! It is not explicitly documented. You have to read the constructors. The link on the main docs <https://cloud.google.com/appengine/docs/python/blobstore/#Python_Serving_a_blob> page has one to the get_serving_url <https://cloud.google.com/appengine/docs/python/refdocs/google.appengine.api.images#google.appengine.api.images.get_serving_url> that shows it needs a blob_key. Reading the section on Blobs and GCS <https://cloud.google.com/appengine/docs/python/blobstore/#Python_Using_the_Blobstore_API_with_Google_Cloud_Storage> you see how to get the key. We encourage Feedback on our docs. At the top of the page it has a 'Send feedback' button where you can express your wishes (such as clearer use of the get_serving_url).
On Monday, August 24, 2015 at 11:53:43 AM UTC-4, James Gilliam wrote: > > Thanks Ryan. > > It works. > > Do you know where this is documented in GAE ? > > On Mon, Aug 24, 2015 at 6:58 AM, Ryan (Cloud Platform Support) < > [email protected]> wrote: > >> Salutations James, >> >> You need to run 'blobstore.create_gs_key' then pass the results to the >> get_serving_url. >> >> self.response.write("<img src='%s'>" % >> get_serving_url(blobstore.create_gs_key("/gs/bucket/image.png"))) >> >> On Sunday, August 23, 2015 at 7:00:18 PM UTC-4, James Gilliam wrote: >>> >>> been googling and reading docs trying to find this out without luck. >>> >>> i have created a gcs object and want to get a url for serving it >>> (get_serving_url) >>> >>> how do you do this? >>> >>> also, is there a way to get a blobinfo for the gcs object ? >>> >>> thanks >>> >>> >>> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Google App Engine" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/google-appengine/ymGS2Nwjrqw/unsubscribe >> . >> To unsubscribe from this group and all its topics, 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. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/google-appengine/30015186-f8a4-4a6e-935a-b2e001d60076%40googlegroups.com >> >> <https://groups.google.com/d/msgid/google-appengine/30015186-f8a4-4a6e-935a-b2e001d60076%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/8f25c24e-51cd-4d73-a87d-5ca01d40d695%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
