![]() |
| ||
| Include Base64 encoded data into XML Hello, I have to base64 encode a large quantity of data and include it in the XML response of the webservice.The WSDL define the XML element in the following way: <xs:complexType name="MessagePart"> I have implemented it but I have some doubts. I'm not sure it's the better way for doing it. import org.apache.commons.codec.binary.Base64; What about performance if I have an attachment of 1MB? I'm specially worried about the "new String()" operation. Any suggestion will be appreciated. Thanks, Alessandro |
| ||
| Re: Include Base64 encoded data into XML Why are you encoding textual data? Base64 is primarily meant to encode binary data. |
| ||
| Re: Include Base64 encoded data into XML In fact I'm encoding binary data. Actually, I have changed it in the following way. import com.sun.xml.rpc.encoding.simpletype.XSDBase64BinaryEncoder; Alessandro |
| All times are GMT -4. The time now is 10:45 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC