Click here to Skip to main content
15,883,883 members
Home / Discussions / C#
   

C#

 
GeneralRe: how? Pin
Silvyster10-Aug-08 16:50
Silvyster10-Aug-08 16:50 
QuestionAnd operator in c#? Pin
CopperCircle10-Aug-08 11:17
CopperCircle10-Aug-08 11:17 
AnswerRe: And operator in c#? Pin
Guffa10-Aug-08 11:29
Guffa10-Aug-08 11:29 
AnswerRe: And operator in c#? Pin
nelsonpaixao10-Aug-08 14:15
nelsonpaixao10-Aug-08 14:15 
GeneralRe: And operator in c#? Pin
Dave Doknjas10-Aug-08 14:38
Dave Doknjas10-Aug-08 14:38 
Questionfinal release help [modified] Pin
bfis10813710-Aug-08 10:09
bfis10813710-Aug-08 10:09 
AnswerRe: final release help Pin
Guffa10-Aug-08 11:33
Guffa10-Aug-08 11:33 
QuestionLarge amount of images - ideas needed Pin
Dewald10-Aug-08 8:23
Dewald10-Aug-08 8:23 
Hi all, I'm looking for just some ideas, not really specific implementation (although, if you feel like sharing that I'd be thankful).

I have a folder with a very large number of pictures (around 10,000). None of these images are particularly big (about 50 to 100KB each)
My application views these images, 5 at a time, depending on what the user chooses. To be more clear, the images are of various species of birds. For each species there can be 5 to 10 images and, in the application, when the user selects a species, it displays all the images of that species.

I'm using the filenames to identify the species and if a certain species is selected I find the applicable files from the folder by using Directory.GetFiles() matching the relevant file names.

This is the first thing I would like to change. I would imagine that a DB implementation of sorts would be more efficient. I like MySQL and have some experience with it (although not in C# seeing as I'm fairly new to C#). Would MySQL be a reasonable choice or is there anything else I should consider if I want to keep the costs of the final product minimal?

Should I save the images as BLOBs in the DB or should I rather save them to disk and save only the file names to the DB?

Secondly, and this is where I really don't have much of a clue. I would like for the images not to be accessible to the end user, ie. this idea of having a folder on disk with 10,000 images. Is there a reasonable way of putting all of the images in a single file perhaps and have the application extract it from the file as needed? The file would be bg (we're talking of up to 500MB), would that pose significant problems to the operation of my application? What might make this decision more tricky is the fact that I'd like for it to be possible and easy to add and remove images from this file at any time.

Any ideas and suggestions would be appreciated.
AnswerRe: Large amount of images - ideas needed Pin
User 665810-Aug-08 8:49
User 665810-Aug-08 8:49 
AnswerRe: Large amount of images - ideas needed Pin
nelsonpaixao10-Aug-08 14:19
nelsonpaixao10-Aug-08 14:19 
Questiondetect if application is opened on start-up or via user? Pin
DragenGimp10-Aug-08 7:43
DragenGimp10-Aug-08 7:43 
AnswerRe: detect if application is opened on start-up or via user? Pin
teejayem10-Aug-08 9:37
teejayem10-Aug-08 9:37 
GeneralRe: detect if application is opened on start-up or via user? Pin
DragenGimp10-Aug-08 10:23
DragenGimp10-Aug-08 10:23 
GeneralRe: detect if application is opened on start-up or via user? Pin
DragenGimp10-Aug-08 11:06
DragenGimp10-Aug-08 11:06 
GeneralRe: detect if application is opened on start-up or via user? Pin
teejayem10-Aug-08 12:31
teejayem10-Aug-08 12:31 
GeneralRe: detect if application is opened on start-up or via user? Pin
DragenGimp10-Aug-08 13:01
DragenGimp10-Aug-08 13:01 
GeneralRe: detect if application is opened on start-up or via user? Pin
teejayem10-Aug-08 14:53
teejayem10-Aug-08 14:53 
GeneralRe: detect if application is opened on start-up or via user? Pin
DragenGimp16-Aug-08 5:50
DragenGimp16-Aug-08 5:50 
QuestionWEIRD problem with CPU 40%-50% in an application. Pin
Green Fuze10-Aug-08 5:23
Green Fuze10-Aug-08 5:23 
QuestionDynamic Instantiation of Classes. Pin
dudedotnet10-Aug-08 5:06
dudedotnet10-Aug-08 5:06 
AnswerRe: Dynamic Instantiation of Classes. Pin
User 665810-Aug-08 5:13
User 665810-Aug-08 5:13 
AnswerRe: Dynamic Instantiation of Classes. Pin
Guffa10-Aug-08 6:35
Guffa10-Aug-08 6:35 
AnswerRe: Dynamic Instantiation of Classes. Pin
PIEBALDconsult10-Aug-08 7:03
mvePIEBALDconsult10-Aug-08 7:03 
QuestionGraphics.DrawImage Problem Pin
#realJSOP10-Aug-08 4:57
mve#realJSOP10-Aug-08 4:57 
AnswerRe: Graphics.DrawImage Problem Pin
Guffa10-Aug-08 5:21
Guffa10-Aug-08 5:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.