Click here to Skip to main content
12,885,268 members (36,174 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# DLL image
how can i create a dll file dynamically and embedding/adding images in it programmatically using c#.
Posted 13-Nov-12 3:17am
Updated 13-Nov-12 3:55am
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

Rate this: bad
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.
aditya_ingle 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)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 13 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100