I serve blobstore images via getServingUrl() all the time, including image blobs that I have created with the files API. On the dev server.
I don't know your particular problem, but the first step in getting help would be to post a full stacktrace. Jeff On Thu, Mar 1, 2012 at 12:19 PM, Kayode Odeyemi <[email protected]> wrote: > On Thu, Mar 1, 2012 at 3:03 PM, Jeff Schnitzer <[email protected]>wrote: > >> Look at the documentation for the images service. There is a method that >> gives you a serving url directly to the CDN. >> >> Warning: This method has a surprising amount of latency, you probably >> want to cache the value in memcache for a reasonable duration. >> >> Can the Image Service work with the filesystem where the blob is stored? > Everytime I try to retrieve it using the method you mentioned > getServingUrl(blobkey), I get the error: > > [java] java.lang.IllegalArgumentException: Failed to read image > [java] at > com.google.appengine.api.images.ImagesServiceImpl.getServingUrl(ImagesServiceImpl.java:222) > > > Also, I'm think this action is not possible on the dev server. > >> >> On Thu, Mar 1, 2012 at 7:42 AM, Kayode Odeyemi <[email protected]> wrote: >> >>> Hi everyone, >>> >>> I have images uploaded to the blobstore using filesystem API. The files >>> have been uploaded successfully and I can see the blobs in the respective >>> directory. >>> >>> But then, how do I decode these files such that when sent back to the >>> client or retrieved using the blobstore API, I'm able to get an image? >>> Right now /blobstore/writable:xxx is not useful for me because when I wrap >>> the path in <img src="/blobstore/writable:xxx" />, it doesn't give me an >>> image. >>> >>> Any help is appreciated. >>> >>> Thanks >>> >>> >>> -- >>> Odeyemi 'Kayode O. >>> http://ng.linkedin.com/in/kayodeodeyemi. t: @charyorde blog: >>> http://sinati.com/tree/java-cheat-sheet >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Google App Engine" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/google-appengine?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/google-appengine?hl=en. >> > > > > -- > Odeyemi 'Kayode O. > http://ng.linkedin.com/in/kayodeodeyemi. t: @charyorde blog: > http://sinati.com/tree/java-cheat-sheet > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
