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/archiv...08/424714.aspx
#Using ASP.NET HTTP Handlers to create a photo album
http://www.microsoft.com/belux/nl/ms...et/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" <br******************@safeco.com>
| References: <E3**********************************@microsoft.co m>
<uH*************@TK2MSFTNGP15.phx.gbl>
<73**********************************@microsoft.co m>
| 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: <#n**************@TK2MSFTNGP14.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: rdcsd1.safeco.com 12.144.134.2
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.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" <th*****@nospam.nospam> wrote in message
| news:73**********************************@microsof t.com...
| > 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" <th*****@nospam.nospam> wrote in message
| >> news:E3**********************************@microsof t.com...
| >> > 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
| >>
| >>
| >>
|
|
|