Including BINARY data in xml file

Discussion in 'XML' started by katiki@kodak.com, Oct 2, 2003.

  1. Guest

    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
     
    , Oct 2, 2003
    #1
    1. Advertising

  2. Martin Boehm Guest

    <> wrote in message news:blgqqv$4vl$

    > 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
     
    Martin Boehm, Oct 2, 2003
    #2
    1. Advertising

  3. Gertas Guest

    Uzytkownik <> napisal w wiadomosci
    news:blgqqv$4vl$...
    > 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/internet/rfc/rfc2045.txt , section 6.8),
    or something else (UUENCODE - but it can contain reserved < or even ]]> so
    need additional processing to entities).

    greetz
    Gertas
     
    Gertas, Oct 2, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tony Prichard
    Replies:
    0
    Views:
    742
    Tony Prichard
    Dec 12, 2003
  2. Johan
    Replies:
    20
    Views:
    1,609
    Arndt Jonasson
    Feb 27, 2007
  3. Replies:
    4
    Views:
    402
    James Kanze
    Apr 10, 2007
  4. Generic Usenet Account

    Arbitrary content (including XML) as binary stream

    Generic Usenet Account, Mar 24, 2009, in forum: XML
    Replies:
    1
    Views:
    604
    cr88192
    Mar 25, 2009
  5. Replies:
    5
    Views:
    86
    Chris Angelico
    May 14, 2014
Loading...

Share This Page