Click here to Skip to main content
15,903,030 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
So, any Ideas? please help A week searching for that and no one helped me...
Posted
Comments
bbirajdar 9-Apr-12 6:20am    
What is a data file? Your question is not clear and is the reason you did not get answer...

1 solution

I would use a database of some kind, probably.
If you have access to it, then Access, SQL or MySQl are fine for this, or SqlCE if you only need single user, and can live with the size limits.

The only problem is that images get big quickly, so any solution which stores images in a single file creates very big files very quickly indeed. You may be better off going for a combined approach where you store teh actaul images in a specific folder under temporary file names, and store the actual file name and the temporary file name in the single field, be it text or database.
In this case, you might get away with a simple XML file, again assuming you don't need multiple user access.
 
Share this answer
 
Comments
Abed AlSayed 9-Apr-12 6:47am    
But the problem that I don't know how to use database, and even if my file become big its not a problem.
OriginalGriff 9-Apr-12 6:53am    
If you are thinking of using your own single file storage for the images, I would suggest "don't".
It isn't just a case of adding each image in sequence: you have to add extra information so that you can tell when each image starts and ends - otherwise you can't retrieve them reliably. And then there is the fun of removal - if you do it yourself, then you either have to allow for that and have a "free list" that you can use for subsequent images (if they fit) or re-write the entire file each time you remove one. And it still won't work in multiuser!

A database is not difficult to use, honest!
What kind of tools do you have available?

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