This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Round trip: Binary -> XML -> Binary
- From: "James Fuller" <james dot fuller at o-idev dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 25 Jun 2002 08:18:06 +0100
- Subject: Re: [xsl] Round trip: Binary -> XML -> Binary
- Organization: o-iDeveloper ltd.
- References: <5.1.0.14.0.20020624212037.00a5fdd0@shawmail>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hello Brian,
I would suggest that there are some extension functions in javascript and
java that could assist you.
here are some articles which deal with the handling of binary data in xml
here is a M$ based method along the lines that you describe
http://www.topxml.com/xml/articles/binary/
an alternative approach using hex
http://www.javaworld.com/javaworld/javatips/jw-javatip117.html?tip
a nice IBM overview
http://www-106.ibm.com/developerworks/xml/library/x-binary/?dwzone=xml
here is an older article
http://www.xml.com/pub/a/98/07/binary/binary.html
good luck, jim fuller
----- Original Message -----
From: "Brian Grainger" <granam@shaw.ca>
> I have an XML file which is derived from a binary data file. I wrote a
> custom parser which reads the binary file and outputs XML. The reason for
> the transform is to allow for storage of the file in an XML database such
> as Xindice or Tamino. This permits searches within the structure of the
> file, rather than just searches based on external attributes such as name,
> size, etc.
>
> I would now like to be able to round-trip the file back to its original
> binary state. My thought is to use an output method of 'text' and emit
> base64-encoded data which can then be decoded by a base64 utility back to
> the original binary.
>
> Is there a way to emit binary directly? I'm not aware of any but wanted to
> ask just in case.
>
> Regards,
> Brian
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list