[jdom-interest] Adding content to CDATA
jyin at qualcomm.com
Mon Sep 22 12:12:58 PDT 2003
Is there a way to get the content in Binary only without the Base64 encoder.
At 02:02 PM 9/22/2003 -0400, New, Cecil (GEAE) wrote:
>Use a Base64 encoder. This makes the binary data ascii text (also
>increases the size of the data).
>From: Joseph Yin [mailto:jyin at qualcomm.com]
>Sent: Monday, September 22, 2003 1:08 PM
>To: jdom-interest at jdom.org
>Subject: [jdom-interest] Adding content to CDATA
>I am new using JDOM to create my XML file, but I have a question
>regarding how to add binary content into CDATA. I have a java method to
>read in a file (e.g. PDF), and the method returns the content of the file
>in ByteArrayOutputStream data type. I want to pass the content into the
>CDATA section as is, and so far I found JDOM's CDATA requires a String
>data type. Can anyone provide me with some hints on how to set the CDATA
>content with Binary input???
>Thanks for your assistance.
>Best, Joseph Yin
>Joseph C. Yin, MSBA (IS Auditing) Location: S-204A
>Analyst Phone# (858) 651-0316
>Incorporated. Fax # (858) 658-1011
>IT Product Development Services EMail : jyin at qualcomm.com
>"TEAM - Together Everyone Accomplishes More"
Joseph C. Yin, MSBA (IS Auditing) Location: S-204A
Analyst Phone# (858) 651-0316
Incorporated. Fax # (858) 658-1011
IT Product Development Services EMail : jyin at qualcomm.com
"TEAM - Together Everyone Accomplishes More"
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the jdom-interest