[jdom-interest] Adding content to CDATA

Joseph Yin jyin at qualcomm.com
Mon Sep 22 10:08:17 PDT 2003


Hi there:

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
Staff Programmer 
Analyst                                Phone#          (858) 651-0316
QUALCOMM 
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...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20030922/aef49363/attachment.htm


More information about the jdom-interest mailing list