Including BINARY data in xml file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • katiki@kodak.com

    #1

    Including BINARY data in xml file

    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

  • Martin Boehm

    #2
    Re: Including BINARY data in xml file

    <katiki@kodak.c om> wrote in message news:blgqqv$4vl $1@news.kodak.c om
    [color=blue]
    > 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 ![/color]

    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&am p;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


    Comment

    • Gertas

      #3
      Re: Including BINARY data in xml file

      Uzytkownik <katiki@kodak.c om> napisal w wiadomosci
      news:blgqqv$4vl $1@news.kodak.c om...[color=blue]
      > 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 ![/color]


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

      greetz
      Gertas


      Comment

      Working...