You are mixing many concepts.
Base64 is typically used for translating binary data into text and
back.  That is not likely to be relevant to your goals.  There are
better methods for handling binary files.
Cocoon empties the InputStream so that should be useless to you.

The request is stored in Cocoon's objectModel Map.  That may be
useful, but the request variable is available to XSPs without work:
<xsp:logic>Enumeration parameterNames = request.getParameterNames();</xsp:logic>

You should explain what you are attempting.  XSP may be part of the
solution, but easier methods may exist.  The RequestGenerator includes
the content of the request. Your function might be achievable with
standard components and some XSL.

solprovider


On Wed, Feb 20, 2008 at 6:38 AM, nanomonk <[EMAIL PROTECTED]> wrote:
>  xsp. I need to take content of request.
>  no method getContent() .
>  but there is getInputStream(), but I can't understand how to use that... how
>  I can to take content like a String?
>  btw, I found this method:
>  private byte[] getContent(HttpServletRequest req)
>     {
>         if (req.getParameter("content") != null)
>             return Base64.decode(req.getParameter("content").getBytes());
>         return "".getBytes();
>     }
>  but cocoon Request return _null_ for req.getParameter("content") even if
>  request.getContentLength() > 0
>  so, how can I take request Content?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to