Link to home
Start Free TrialLog in
Avatar of astromex
astromex

asked on

Embed image in DLL

Is it possible to embed an image (say, a GIF file) inside a DLL? like a VB executable would store a picturebox-control contents?

The DLL will be used by an ASP script to return an HTML string. I could just reference it by building the <img src> tag into the string and have the image stored separatley on disk, but I want the DLL to be completely self-contained.

I reckon it may be possible to do it by encoding the image in Base64, but I thought I would ask EE before I waste any time on it.
Any examples would be nice.
ASKER CERTIFIED SOLUTION
Avatar of fds_fatboy
fds_fatboy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of astromex
astromex

ASKER

Hi again fds_fatboy.
I've not used resource files before, how do they work? I am using VB6 by the way.

Re: the <img> tag,
What I meant was that the DLL would output the string "<img src='images/logo.gif'>" and as long as the file "logo.gif" is in the "images" directory (within web scope), then the browser will display it.
thanks