Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Including BINARY data in xml file

Reply
Thread Tools

Including BINARY data in xml file

 
 
katiki@kodak.com
Guest
Posts: n/a
 
      10-02-2003
Hi all,

I suppose it's a frequent post, but I would like to include a binary data
(iomage in fact)
into xml files (generated by our application).
Custiomer does not want the image to be an external files
I'm using xerces c++ toolkit, I know there are some usefull classes to
achieve that, but I've no
sample code at all !

Thanks to help me,

Karim

 
Reply With Quote
 
 
 
 
Martin Boehm
Guest
Posts: n/a
 
      10-02-2003
<(E-Mail Removed)> wrote in message news:blgqqv$4vl$(E-Mail Removed)

> I suppose it's a frequent post, but I would like to include a binary
> data (iomage in fact) into xml files (generated by our application).
> Custiomer does not want the image to be an external files
> I'm using xerces c++ toolkit, I know there are some usefull classes to
> achieve that, but I've no sample code at all !


I suppose you want to transform your XML to HTML in some way or other.

Given you can process your XML file with ASP (just for example):
You cold encode your Image bytewise, maybe as a comma separated list of
bytes and put that into your XML. Then you can create an array of bytes
from that in ASP and implemet a function that puts these bytes into the
output stream on request (e.g. <img src="img.asp&amp;image=img1"/>)

I don't think there is a way to put the image source into the XML and
transform that directly into HTML _with_ the image visible.

Martin


 
Reply With Quote
 
 
 
 
Gertas
Guest
Posts: n/a
 
      10-02-2003
Uzytkownik <(E-Mail Removed)> napisal w wiadomosci
news:blgqqv$4vl$(E-Mail Removed)...
> Hi all,
>
> I suppose it's a frequent post, but I would like to include a binary data
> (iomage in fact)
> into xml files (generated by our application).
> Custiomer does not want the image to be an external files
> I'm using xerces c++ toolkit, I know there are some usefull classes to
> achieve that, but I've no
> sample code at all !



You can encode image data using Base64 (
http://src.doc.ic.ac.uk/computing/in...fc/rfc2045.txt , section 6.,
or something else (UUENCODE - but it can contain reserved < or even ]]> so
need additional processing to entities).

greetz
Gertas


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Arbitrary content (including XML) as binary stream Generic Usenet Account XML 1 03-25-2009 08:47 AM
Including large amounts of data in C++ binary bcomeara@ucdavis.edu C++ 4 04-10-2007 03:19 PM
including one XML file in another XML file Johan XML 20 02-27-2007 04:29 PM
Newbie. xml "dynamically" including another xml document Clive XML 1 08-21-2005 08:26 PM
Help on including one XML document within another XML document using XML Schemas Tony Prichard XML 0 12-12-2003 03:18 PM



Advertisments