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 <[email protected] > 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) > > > >
