I did a quick test and while I didn't implement the full protocol, it
certainly seems possible to register a temporary handler from within a
WinForms application even if you are running as a regular user.
Fernando Tubio
----- Original Message -----
From: "Fernando Tubio" <[EMAIL PROTECTED]>
To: <ADVANCED-DOTNET@DISCUSS.DEVELOP.COM>
Sent: Friday, May 11, 2007 1:09 PM
Subject: Re: [ADVANCED-DOTNET] Displaying an image in a WebBrowser without
saving it to disk first (WinForms)
I'm not 100% sure but I don't believe that this is necessary if you are
registering a temporary protocol handler for your own process.
Regards,
Fernando Tubio
----- Original Message -----
From: "Efran Cobisi" <[EMAIL PROTECTED]>
To: <ADVANCED-DOTNET@DISCUSS.DEVELOP.COM>
Sent: Friday, May 11, 2007 10:04 AM
Subject: Re: [ADVANCED-DOTNET] Displaying an image in a WebBrowser without
saving it to disk first (WinForms)
That's a good point but, afaik, it would require access to the registry
with administrative privileges to be set up.
And it seems the target user of this app could not have those privileges
granted. Or I'm wrong here, Eyvind?
--
Efran Cobisi
http://www.cobisi.com
Fernando Tubio wrote:
How about implementing an asynchronous pluggable protocol [1]? This
is what
is used to implement the res:// protocol except that in your case,
instead
of retrieving your resource from your executable, you can do it from a
database. The images could then be displayed by using an appropriate url
with a scheme corresponding to your protocol. For example,
<img src="dbimg://...">
[1] http://msdn2.microsoft.com/en-us/library/aa767916.aspx
Regards,
Fernando Tubio
----- Original Message -----
From: "Eyvind Axelsen" <[EMAIL PROTECTED]>
To: <ADVANCED-DOTNET@DISCUSS.DEVELOP.COM>
Sent: Friday, May 11, 2007 5:59 AM
Subject: Re: [ADVANCED-DOTNET] Displaying an image in a WebBrowser
without
saving it to disk first (WinForms)
-----Opprinnelig melding-----
Fra: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] På vegne av Efran Cobisi
< A possible solution could be to expose a custom web server (like
Cassini
[1], for example) inside your own application >
We did, actually, at one pint host Cassini within our application,
but it
was later removed due to security and maintenance concerns.
Eyvind.
===================================
This list is hosted by DevelopMentor� http://www.develop.com
View archives and manage your subscription(s) at
http://discuss.develop.com
===================================
This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at
http://discuss.develop.com
===================================
This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at
http://discuss.develop.com
===================================
This list is hosted by DevelopMentor� http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com