[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Images embedded in XML

  • From: Benjamin Franz <snowhare@n...>
  • To: xml-dev@l...
  • Date: Thu, 05 Apr 2001 09:26:45 -0700 (PDT)

xml embed image
On Thu, 5 Apr 2001, Bullard, Claude L (Len) wrote:

> If this works this well, why does HTML not 
> embed images in the HTML page?

You can - it isn't a limitation of HTML. URI type 'data:' from RFC2397
<URL:http://www.landfield.com/rfcs/rfc2397.html>. Netscape has supported
it for a long time - but MSIE didn't last time I checked (a few years
ago).

<IMG
    SRC="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAw
AAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFz
ByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSp
a/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJl
ZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uis
F81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PH
hhx4dbgYKAAA7"
ALT="Larry">

Try it in Netscape and it will work. Try it in MSIE, and it probably will
not. Since MSIE has 86%+ of the market, designers won't use it at all.
That is the same reason designers don't use the 'OBJECT' tag, either (now
*that* was a real crime - MSIE almost certainly had to have
*intentionally* broken it. The tag was designed for transparent backward
compatibility, but MSIE throws major hissy fits over it and made it
impossible to deploy for *anything* except ActiveX.) The real question
becomes "Why doesn't MS want to support RFC2397?".

> Would one want to lose the XML payload if the image does 
> not make it, the connection drops, etc.?
> As long as I can remember, embedding binary 
> in markup has been discouraged.  
>
> When would putting the binary in the XML 
> be a good idea?

When you need to distribute a self-contained system.

-- 
Benjamin Franz

"Real programmers can write assembly code in any language." 
                                 -- Larry Wall 



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.