Thanks a lot Johan!
It seems to work!
I didn't think at all at getting the ServletReq/Resp from ServletWrapper in
Play:D
I'm so used to think I'm not in Servlet world that I forgot Play uses a
ServletWrapper for GAE!

pascal

On Mon, Oct 3, 2011 at 6:52 PM, Johan Euphrosine <pro...@google.com> wrote:

> Hi Pascal,
>
> You could access the underlying HttpServletRequest object in Play using:
> Http.Request.current().args.get(ServletWrapper.SERVLET_REQ)
>
> You should be able to call getUploadedBlobs on it.
>
> Hope that helps.
>
> On Mon, Oct 3, 2011 at 8:23 AM, Pascal Voitot Dev <
> pascal.voitot....@gmail.com> wrote:
>
>> Not any suggestion here?
>>
>> thanks
>> Pascal
>>
>>
>> On Thu, Sep 29, 2011 at 11:26 AM, Pascal Voitot Dev <
>> pascal.voitot....@gmail.com> wrote:
>>
>>> Hi,
>>> I'm using Play Framework to build apps on GAE and as you may know, Play
>>> is not Servlet based. So no HttpServletRequest...
>>> In the blobstore case, we have a problem to retrieve the blobkey after
>>> uploading the file.
>>> So upload works perfectly from the url returned by :
>>> blobstoreService.createUploadUrl("/upload")
>>>
>>> Google stores the blob and then calls back the "/upload" handler of my
>>> app but I can't find the blobkey in the header and I can't use the :
>>>
>>> Map<String, BlobKey> blobs = blobstoreService.getUploadedBlobs(req);
>>>
>>>
>>>
>>>
>>>
>>> which requires the HttpServletRequest I don't have in Play!
>>>
>>> Any other solution to retrieve the blob key of the uploaded file? (I read 
>>> the experimental paragraph at the end of the doc but I wonder if there is a 
>>> simpler way to do it)
>>>
>>>
>>>
>>>
>>>
>>> Thanks
>>> Pascal
>>>
>>>
>>>
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To post to this group, send email to google-appengine@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine?hl=en.
>>
>
>
>
> --
> Johan Euphrosine (proppy)
> Developer Programs Engineer
> Google Developer Relations
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> 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 google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to