Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unaswerable question? I doubt !

Status
Not open for further replies.

Robertus

Programmer
Feb 16, 2001
81
RO
If I wanted to load a BITMAP from the resources in an HTML then I would write this:

<IMG src=&quot;res://app.exe/#2/#150&quot;>

(#2 tells the WEBBROWSER ctrl that it is about a BITMAP and #150 is the ID number for the bitmap resource (View/Resource symbols...))

My question is: HOW DO I LOAD AN JPEG OR A GIF FROM MY RESOURCES???

Thanks anyway!
 
HTTP Protocol and web servers in general do not know what a 'resource' is unless you write the functionality in. Even then what the functionality would require is you to save the graphic to file BEFORE the browser can display it.

I've done this before with database BLOBS. Save the blob to file, then display it (blob being a graphic of course).

Hope it helps.

B
 
Oh but I've read the &quot;Predefined Protocols&quot; article in MSDN and lots of other MSDN infos ant they told that starting with IExplore 4.0 the browser knows about the res:// protocol wich means los\ading files from resources. And it worked perfectly for me in case of a BITMAP file, but I don't know how to load a JPEG or a GIF file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top