๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #267

Re: Raw data in XML

#267
From: Kevin Dean
Date: Tue, 23 Mar 2004 10:35
27 lines
2089 bytes
Strangely enough, there's no standard base 64 encoding package.  You can use
sun.misc.BASE64Encoder and sun.misc.BASE64Decoder or, if you're using the
Apache Xerces XML parser there's org.apache.xerces.util.Base64.  The latter
is the preferred option as anything in the sun.* packages is by definition
not guaranteed portable across multiple JVM's.

-- 
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html

BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server

Dolphin Data Development Ltd.
http://www.datadevelopment.com/

"Tor Iver Wilhelmsen (TeamB)" <tor.wilhelmsen@ergo.no> wrote in message
news:uptb4f0jx.fsf@ergo.no...
> "Peter Th๏ฟฝnell" <thonellp@optusnet.com.au> writes:
>
> > I would like to store and retrieve byte arrays (byte[]) in attributes in
XML
> > files.  How do I convert the data to be XML friendly, and then back
again?
>
> Using Base 64 encoding seems to be most common. There shold be some
> classes for that type of work in some of the standard packages.
Technical Details
Message-ID: <4060138b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <405fa979$1@newsgroups.borland.com> <uptb4f0jx.fsf@ergo.no>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 1089d0,35102fc643fbb58e
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2004-03-23 02:39:34 PST
From: "Kevin Dean" <NkOdSePaAnM@datadevelopment.com>
Newsgroups: borland.public.jbuilder.java.api
References: <405fa979$1@newsgroups.borland.com> <uptb4f0jx.fsf@ergo.no>
Subject: Re: Raw data in XML
Date: Tue, 23 Mar 2004 05:35:39 -0500
Lines: 29
Organization: Dolphin Data Development Ltd.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 24.57.150.243
Message-ID: <4060138b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1080038283 24.57.150.243 (23 Mar 2004 02:38:03 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail