muis2002
asked on
Saving images
Hi,
What is the best (practical) technique to save several images into one file ? And then read it again into an array of TImage ?
What is the best (practical) technique to save several images into one file ? And then read it again into an array of TImage ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks guys,
I think I will use zip file because it is easy. But too bad I cant unzip it into a memory.
I think I will use zip file because it is easy. But too bad I cant unzip it into a memory.
I don't know if the component here
http://www.delphizip.net/
allows you to unzip to memory, but there ARE components that allow you to do that, you might want to search other Zipping components, I use XceedZip (not free) and works really well
http://www.delphizip.net/
allows you to unzip to memory, but there ARE components that allow you to do that, you might want to search other Zipping components, I use XceedZip (not free) and works really well
Did you consider saving them to a database? There are several database systems that accept images as fields (blobs).
As for saving them to a file... what do you mean? You could add them to a zip archive if you need this "several images into one file" to help you save space.
And as for reading them use the same zip archive (or whatever) to unpack the files. There are some components that can help you pack more files into one archive. Search on torry or ComponentSource or any other delphi oriented webpages.
Good luck