Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can i create a dll file dynamically and embedding/adding images in it programmatically using c#.
Posted
Updated 13-Nov-12 3:55am
v2
Comments
Pro Idiot 13-Nov-12 9:31am    
Can you clarify your question ?What do you mean by embed image in dll ?
Christian Graus 13-Nov-12 10:05am    
He wants to store images in a dll, obviously

1 solution

I don't know of any way to do that unless you load the dll in to memory, add the images, and write it out again. That seems very wasteful to me. I'd be installing SQL Lite or another embedded DB and storing images in that, if I needed to store them in a file.
 
Share this answer
 
Comments
mryeti 13-Nov-12 10:22am    
is there anyway to save multiple images in single file and retrieve them in c#.
Christian Graus 13-Nov-12 10:24am    
Yes, the obvious way is to save them end to end so that you need to know the start and length of the bytes for one image in order to extract it. But adding to that file dynamically is probably more expensive than you want. A SQL DB is a far better solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900