🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #2308

Re: XML and Binary Data

#2308
From: Matt Jacobs
Date: Wed, 13 Aug 2003 08:09
14 lines
1658 bytes
"Chad Eddy" <chad_eddy@qwest.net> wrote:

>OK, not directly related to database, but I'm not sure where to go.  Can you
>store binary data directly in a XML document?  I know you can reference its
>location.  Can you store it in CData?

Convert it to base64 and store it in a standard text element. With
MSXML 4, it seems to work up to about 500k bytes or so and then bad
things happen. :-)

If you need to read a file into an XML element from a web page, there
are articles on the web that demonstrate how to do it using ADO
Streams in JavaScript, which has certain advantages over posting form
data.
Technical Details
Message-ID: <7bsjjv4btndtsjfaucn47sltggd018vhg6@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f391f19$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,f28fdce41c118630
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-08-13 01:40:10 PST
From: Matt Jacobs <noyb@noyb.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: XML and Binary Data
Date: Wed, 13 Aug 2003 01:09:57 -0700
Reply-To: __noyb@noyb.com
Message-ID: <7bsjjv4btndtsjfaucn47sltggd018vhg6@4ax.com>
References: <3f391f19$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 12.208.33.54
X-Trace: newsgroups.borland.com 1060762257 12.208.33.54 (13 Aug 2003 01:10:57 -0700)
Lines: 14
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail