<html>
<body>
Hi there:<br><br>
Is there a way to get the content in Binary only without the Base64
encoder.<br><br>
Thanks, Joseph<br>
At 02:02 PM 9/22/2003 -0400, New, Cecil (GEAE) wrote:<br>
<blockquote type=cite class=cite cite><font face="arial" size=2 color="#0000FF">Use
a Base64 encoder. This makes the binary data ascii text (also
increases the size of the data).</font><br>
<dl>
<dd><font face="tahoma" size=2>-----Original Message-----<br>
<dd>From:</b> Joseph Yin
[<a href="mailto:jyin@qualcomm.com" eudora="autourl">mailto:jyin@qualcomm.com</a>]<br>
<dd>Sent:</b> Monday, September 22, 2003 1:08 PM<br>
<dd>To:</b> jdom-interest@jdom.org<br>
<dd>Subject:</b> [jdom-interest] Adding content to CDATA<br>
<dd>Importance:</b> High<br><br>
</font>
<dd>Hi there:<br><br>
<dd>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???<br><br>
<dd>Thanks for your assistance.<br><br>
<dd>Best, Joseph Yin<br><br>
<dd>=====================================================================
<br>
<dd>Joseph C. Yin</i></b>, MSBA (IS
Auditing)</i></b><x-tab> </x-tab><x-tab> </x-tab>Location:
<x-tab> </x-tab>S-204A<br>
<dd>Staff Programmer
Analyst<x-tab> </x-tab>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab>Phone#<x-tab> </x-tab><x-tab> </x-tab>(858)
651-0316 <br>
<dd>QUALCOMM Incorporated.<x-tab> </x-tab>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab>Fax
#
<x-tab> </x-tab><x-tab> </x-tab>(858)
658-1011<br>
<dd>IT Product Development
Services<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab>EMail
: jyin@qualcomm.com <br>
</i></b>
<dd><font size=4 color="#0000FF">"TEAM</i></b> - T</i></b>ogether
E</i></b>veryone A</i></b>ccomplishes M</i></b>ore" <br>
</font>
<dd>==================================================<font size=4 color="#FF0000">
<br>
</font></blockquote>
<x-sigsep><p></x-sigsep>
</dl>===================================================================== <br>
<font size=4><b><i>Joseph C. Yin</i></b>, <b><i>MSBA (IS Auditing)</i></b><x-tab> </x-tab><x-tab> </x-tab></font><b><i>Location: <x-tab> </x-tab>S-204A<br>
Staff Programmer Analyst<x-tab> </x-tab> <x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab>Phone#<x-tab> </x-tab><x-tab> </x-tab>(858) 651-0316 <br>
QUALCOMM Incorporated.<x-tab> </x-tab> <x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab>Fax # <x-tab> </x-tab><x-tab> </x-tab>(858) 658-1011<br>
IT Product Development Services<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab>EMail : jyin@qualcomm.com <br>
</i></b><font size=4 color="#0000FF">"<b><i>TEAM</i></b> - <b><i>T</i></b>ogether <b><i>E</i></b>veryone <b><i>A</i></b>ccomplishes <b><i>M</i></b>ore" <br>
</font><font size=4>==================================================</font><font size=4 color="#FF0000"> </font></body>
</html>