Re: Embedding an image in the html?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Dave,

IMO, I don't quite recommend using the
<img src="data:image/gif;base64,<base64 encoded image>">

since it's not a standard feature in html, also making image binary mixed
with html content will cause the main page's size increase extremely.....
I'd suggest you consider building an ASP.NET httphandler which help
retrieving image stream from different soruce (database, file system, or
dynamically through GDI+ code) and write them out as a single image stream
... Thus, any other pages can use <img src=xxxx> to reference that
httphandler's url.... here is


#A simple ASP.NET photo album
http://weblogs.asp.net/bleroy/archive/2005/09/08/424714.aspx

#Using ASP.NET HTTP Handlers to create a photo album
http://www.microsoft.com/belux/nl/msdn/community/columns/desmet/httphandler.
mspx

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Bruce Barker" <brubar_nospamplease_@xxxxxxxxxx>
| References: <E34D203A-31AB-4B55-9D90-0E31C4B40825@xxxxxxxxxxxxx>
<uHktMd$BGHA.412@xxxxxxxxxxxxxxxxxxxx>
<73416E59-B5D2-4A18-AD06-2437E5ED6868@xxxxxxxxxxxxx>
| Subject: Re: Embedding an image in the html?
| Date: Fri, 23 Dec 2005 12:57:19 -0800
| Lines: 52
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <#n6f3NACGHA.3984@xxxxxxxxxxxxxxxxxxxx>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: rdcsd1.safeco.com 12.144.134.2
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:366857
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| i believe these are the correct versions
|
| opera 7.2 +
| safari 1.2 +
| firefox 1.0 +
| mozilla (2003+)
|
| -- bruce (sqlwork.com)
|
| "David Thielen" <thielen@xxxxxxxxxxxxx> wrote in message
| news:73416E59-B5D2-4A18-AD06-2437E5ED6868@xxxxxxxxxxxxxxxx
| > Oh wow - this is great. Too bad IE doesn't do this also but we can work
| > based
| > on browser type. By any chance do you know what version of each it is
| > supported in?
| >
| > --
| > thanks - dave
| >
| >
| > "Bruce Barker" wrote:
| >
| >> yes, for browsers like mozilla, firefox, opera and safari that
implement
| >> rfc
| >> 2397, you can include the image in as a base64 encoded. IE does not
| >> support
| >> rfc 2397.
| >>
| >> <img src="data:image/gif;base64,<base64 encoded image>">
| >>
| >>
| >> -- bruce (sqlwork.com)
| >>
| >>
| >>
| >> "David Thielen" <thielen@xxxxxxxxxxxxx> wrote in message
| >> news:E34D203A-31AB-4B55-9D90-0E31C4B40825@xxxxxxxxxxxxxxxx
| >> > Hi;
| >> >
| >> > Is there a way to embed images in the response rather than writing
them
| >> > to
| >> > disk and having an <img ...> tag? And if so, how is it done and what
| >> > browsers
| >> > support it?
| >> >
| >> > --
| >> > thanks - dave
| >>
| >>
| >>
|
|
|

.



Relevant Pages

  • Re: iceweasel based on firefox 6.0 for squeeze
    ... the Canvas element has been supported by Apple's Webkit since 2004. ... HTML 5 is not a finalised standard *yet*. ... It will never be fully supported by all browsers - even when ... then you can start testing browsers for HTML 5 support. ...
    (Debian-User)
  • Re: OT-- do I really need to upgrade my IE 6.0??
    ... If you really find IE6 better than current browsers, I would respectfully question your knowledge in that field. ... Sites will still open, and in many cases will look fine, but in others, float drop, the 3 pixel jog, and other "fun" assorted problems caused by the lack of support for the box model will cause problems. ... Client uses Amazon.com web site and a local public library web site. ... Microsoft actually has the chutzpah to publish a list of hundreds of web sites known to be incompatible with IE 8. ...
    (alt.sys.pc-clone.dell)
  • Re: why a different tag for SVG images?
    ... Way back, for example, some browsers supported ... support all conceivable formats. ... really the business of the HTML authoring group. ...
    (comp.infosystems.www.authoring.html)
  • Re: google desktop search
    ... I would urge readers of this forum to complain when they notice a site ... I've complained to Microsoft that their MSDN subscribers ... not to support other browsers! ... Most other companies seems concerned about supporting other browsers ...
    (borland.public.delphi.non-technical)
  • Re: FrontPage permission error
    ... HTML editor, and I believe this method will work better for us since we are ... Then I add the user to the current site's Contributor site group. ... Microsoft Online Community Support ...
    (microsoft.public.sharepoint.windowsservices)