Re: [xml] Embedding images



On Sun, 3 Jun 2001, Adrian Feiguin wrote:



On Sun, 3 Jun 2001, Matt Sergeant wrote:

On Sun, 3 Jun 2001, Adrian Feiguin wrote:

How can I use libxml to embed a large pixmap in a file? I don't want to
use a different file for the image, I wan't to embed it in my main
document. Is that possible? How? Any documentation? What about embedding
BLOBs, like a gif file, is there any documentation/examples available?

The "standard" way to do this is to use base64 encoding, and putting the
data in the content of a tag. There is no direct support for decoding this
in XML parsers, but it's pretty easy to do manually.


Thanks for the info, can you give me a link to documentation/examples,
if any?

XML-dev's archives are full of this sort of thing, as a Google search for
"XML base64 binary" will turn up.

-- 
<Matt/>

    /||    ** Founder and CTO  **  **   http://axkit.com/     **
   //||    **  AxKit.com Ltd   **  ** XML Application Serving **
  // ||    ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** mod_perl news and resources: http://take23.org  **
     \\//
     //\\
    //  \\





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]