You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Ricardo Pereira <ri...@gmail.com> on 2009/09/18 13:52:24 UTC

Re: Conversion byte[] to String not accepted by ODE (Illegal character)

Hi again, i have already solved the problem by converting this way:

String base64String = Base64.encode(plantaAux);

Thank you anyway
Ricardo

On Fri, Sep 18, 2009 at 12:20 PM, Ricardo Pereira <ricardo.selecta@gmail.com
> wrote:

> Hello,
>
> I have a Java app which requests a ODE process by using the XML as a
> String. Everything goes fine till i substitute a field that is the
> conversion of a byte[] (which is the result of an image conversion) to
> String.
> To this conversion i'm using this:
>
> byte[] plantaAux;
> .....
> String value = new String(plantaAux);
>
> after i do this an exception is retuned in the log file. How can i convert
> a byte[] to a String that is accepted by ODE?
>
> Thanks Ricardo
>
> PS: the esception is:
>
> ERROR - GeronimoLog.error(108) | Exception occured while invoking ODE
> org.apache.axiom.om.OMException:
> com.ctc.wstx.exc.WstxUnexpectedCharException: Illegal character ((CTRL-CHAR,
> code 26))
>  at [row,col {unknown-source}]: [2,1]
>     at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:239)
>
>
>
>