Deploying and accesing lots of images

D

Dominik Klein

Hi,

my application uses lots of images to display.
Currently the user has to manually copy the data to his device and then
specify the path to this. The data is stored in subdirectories, like

\category1\image1
\category2\image2
\category2\image2
....

Now manually copying works, however it's quite uncomfortable.
First idea was, to make those files automatically copy by putting them
in the .CAB file. However the CabWizard gives a build error. Searching
the web revealed that the problem might be, that there are to many files
(all in all around 2000 images).
But even if this would work it's not a very elegant solution.

The best thing would be to package all those images in some kind of
single ressource file and then access it on runtime.
The solution should be simple (i just need to load the images) and fast.

As far as I understand, the adding ressources to Visual Sutdio is more
like meant to put a few data there and not as a data container.

I'm sure that people ran into this problem before and that there's
already a free solution available. However I was unable to find one.
Maybe even the .NET CF implements some sort of functionality.

Could someone point me in the right direction?

Thanks,

Dominik
 
F

Fabien

Hi,

Add the image files to your project, then select all files and click in
the Properties panel, change the "Copy to Output Directory" to "Copy if
newer"

BR


Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/

Dominik Klein a écrit :
 
M

Mark Arteaga

Why not create an assembly that contains all your images as embedded resources?
But 2000 images will probably make the file big and don't know how fast the
access will be so you will have to test.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top