Re: [xml] Embedding images

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.


    /||    ** Founder and CTO  **  **     **
   //||    ** Ltd   **  ** XML Application Serving **
  // ||    ** **  ** XSLT, XPathScript, XSP  **
 // \\| // ** mod_perl news and resources:  **
    //  \\

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