Click to See Complete Forum and Search --> : inserting images into an XML document


Jamie Harsevoort
12-05-2000, 04:08 PM
What is the easiest way to insert an image into an XML document? Do I need
to encode the image and store it as text, or is there a more efficient way
to do this?

Thanks,
Jamie Harsevoort

Praveena
12-06-2000, 03:14 AM
"Jamie Harsevoort" <jharsevoort@coyotecorp.com> wrote:
>What is the easiest way to insert an image into an XML document? Do I need
>to encode the image and store it as text, or is there a more efficient way
>to do this?
>
>Thanks,
>Jamie Harsevoort
>
>

Hii Jamie,

The easiest way to do it is to create an xsl stylesheet for the xml document.
You can use HTMl inside an xsl stylesheet. Thus you acn use the "<img>" tag
in the xsl stylesheet
for the XML document and insert the image you want

Jamie Harsevoort
12-06-2000, 08:48 AM
"Praveena" <pravie@rediffmail.com> wrote in message
news:3a2df578$1@news.devx.com...

> Hii Jamie,
>
> The easiest way to do it is to create an xsl stylesheet for the xml
document.
> You can use HTMl inside an xsl stylesheet. Thus you acn use the "<img>"
tag
> in the xsl stylesheet
> for the XML document and insert the image you want

Thanks for the reponse.

This isn't exactly what I need though...

I need to include an image as part of an XML document as part of a data
transfer. This is not a html interface - the XML document is being used
only to transfer data so XSL technology is not applicable. I also can't
include a path to an image inside the XML document because the program on
the receiving end may not have access to that path.

Phil Weber
12-07-2000, 01:23 PM
> What is the easiest way to insert an image into an XML
> document? Do I need to encode the image and store it
> as text?

Jamie: Yes, I'm pretty sure that's what you'll need to do. If you'll be
using Microsoft's MSXML 3.0 parser, you can create an XDR schema which
specifies the method of encoding used (base64, hex, etc.) for the binary
data. For more information on XDR and encoding of binary data, see
http://msdn.microsoft.com/xml/articles/biztalk/schemaintro.asp . Hope that
helps!
---
Phil Weber

Jamie Harsevoort
12-07-2000, 01:40 PM
"Phil Weber" <pweber@devx.com> wrote in message
news:3a2fd53c$1@news.devx.com...
> > What is the easiest way to insert an image into an XML
> > document? Do I need to encode the image and store it
> > as text?
>
> Jamie: Yes, I'm pretty sure that's what you'll need to do. If you'll be
> using Microsoft's MSXML 3.0 parser, you can create an XDR schema which
> specifies the method of encoding used (base64, hex, etc.) for the binary
> data. For more information on XDR and encoding of binary data, see
> http://msdn.microsoft.com/xml/articles/biztalk/schemaintro.asp . Hope that
> helps!
> ---
> Phil Weber


Thanks - that looks like it'll work to me!

Vishwanathan Raman
12-13-2000, 04:48 PM
I have a similar situation. Could you let me know if it worked for you ? If
yes could you telll me what needs to be done

Regards
Vishy

"Jamie Harsevoort" <jharsevoort@coyotecorp.com> wrote:
>
>"Phil Weber" <pweber@devx.com> wrote in message
>news:3a2fd53c$1@news.devx.com...
>> > What is the easiest way to insert an image into an XML
>> > document? Do I need to encode the image and store it
>> > as text?
>>
>> Jamie: Yes, I'm pretty sure that's what you'll need to do. If you'll be
>> using Microsoft's MSXML 3.0 parser, you can create an XDR schema which
>> specifies the method of encoding used (base64, hex, etc.) for the binary
>> data. For more information on XDR and encoding of binary data, see
>> http://msdn.microsoft.com/xml/articles/biztalk/schemaintro.asp . Hope
that
>> helps!
>> ---
>> Phil Weber
>
>
>Thanks - that looks like it'll work to me!
>
>
>