Hi Raul,

I think if you use a Byte array or ByteArrayOutputStream then you can use a 
JSONEncoder to encode and decode transmission to plupload. This shouldn't be 
too hard to get working, if you post your code you might get a more practical 
answer. 

PS: That library looks rather promising!

Cheers,
Peter

----- Original Message -----
From: "raulmt" <rau...@gmail.com>
To: users@tapestry.apache.org
Sent: Thursday, 23 December, 2010 16:17:58 GMT +02:00 Athens, Beirut, 
Bucharest, Istanbul
Subject: plupload with Tapestry


Hi,

I'm integrating plupload (http://www.plupload.com/) with Tapestry and I
cannot find a solution to the last step. Plupload expects a response in JSON
format but the request it sends to Tapestry with the uploaded file is a
traditional request (because Ajax requests cannot send files unless the
browser has that HTML5 capability). I could just send a TextStreamResponse
with a text containing JSON, but what I really want to do is to send, in
this JSON response, a little bit of HTML rendered by Tapestry. In fact, if I
could just send back to the browser the same response Tapestry sends when
returning a Block it would be great.

The problem, as I said, is that this is in the context of a traditional
request. Is there a way to generate a portion of HTML (ideally a Block) in
the context of a traditional (non-Ajax) request?

Thanks.

Regards,
Raul.
-- 
View this message in context: 
http://tapestry-users.832.n2.nabble.com/plupload-with-Tapestry-tp5862187p5862187.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to