Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#DLLimage
how can i create a dll file dynamically and embedding/adding images in it programmatically using c#.
Posted 13-Nov-12 3:17am
Edited 13-Nov-12 3:55am
v2
Comments
Pro Idiot at 13-Nov-12 9:31am
   
Can you clarify your question ?What do you mean by embed image in dll ?
Christian Graus at 13-Nov-12 10:05am
   
He wants to store images in a dll, obviously

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
aditya_ingle at 13-Nov-12 10:22am
   
is there anyway to save multiple images in single file and retrieve them in c#.
Christian Graus at 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)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 sanket saxena 335
1 Abhinav S 333
2 Sergey Alexandrovich Kryukov 275
3 OriginalGriff 235
4 CPallini 205
0 Sergey Alexandrovich Kryukov 8,497
1 OriginalGriff 4,850
2 Peter Leow 3,839
3 Maciej Los 3,535
4 Er. Puneet Goel 3,107


Advertise | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 13 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid