[11569] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

Re: binaries in an xml file

daemon@ATHENA.MIT.EDU (Ari Gordon-Schlosberg)
Mon Apr 17 01:32:25 2000

Date: Mon, 17 Apr 2000 00:20:04 -0500
From: Ari Gordon-Schlosberg <regs@nebcorp.com>
To: www-talk@w3.org
Message-Id: <20000417002004.A975@nebcorp.com>
Mail-Followup-To: www-talk@w3.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
In-Reply-To: <NABBKJAPMFCDCPGEAENJAEHMCAAA.jlewinso@netvision.net.il>; from jlewinso@netvision.net.il on Sun, Apr 16, 2000 at 10:05:39PM +0200
Resent-From: www-talk@w3.org

[Lewinsohn <jlewinso@netvision.net.il>]
> i'm trying to embed a binary file withing an xml file.
> i don't wont to use an entity but must literaly include the binary file
> inside.
> any suggestions?
> 

Yup. Base64 encode it and stick it in a CDATA field.  Look at section 5.2
in RFC 1521: Base64 Content-Transfer-Encoding and 2.7 in the XML 1.0 spec.

http://www.faqs.org/rfcs/rfc1521.html
http://www.w3.org/TR/1998/REC-xml-19980210#sec-cdata-sect

-- 
Ari							there is no spoon
-------------------------------------------------------------------------
http://www.nebcorp.com/~regs/pgp for PGP public key


home help back first fref pref prev next nref lref last post