ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ricardo Pereira <ricardo.sele...@gmail.com>
Subject Re: Conversion byte[] to String not accepted by ODE (Illegal character)
Date Fri, 18 Sep 2009 11:52:24 GMT
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)
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message