1

Topic: Storage by application of a great number of pictures of the small size on different OS

Good afternoon.
Faced such problem - it is developed  application (Windows, Android, probably, IOS).
Application should store a considerable quantity (> 10-30k) pictures in the size of 10-200 KB.
At usage by the user discovery of any file will be often carried out.
However, files almost will never change.
Essence in that, by experience faced such amount of files on Windows and I know that there can be brakes.
+ Removal, application unpacking, information movement from a flash card on storage of phone and is reverse at will of the user - will be long.
The Question in that - how to store - in Sqlite?
There is still a crazy idea - most to write a format of storage and to store as some the big files.

2

Re: Storage by application of a great number of pictures of the small size on different OS

In zip-archive.

3

Re: Storage by application of a great number of pictures of the small size on different OS

miksoft wrote:

in zip-archive.

Oblate pictures??

4

Re: Storage by application of a great number of pictures of the small size on different OS

miksoft;
Each time at program start to unpack - the bad variant.

5

Re: Storage by application of a great number of pictures of the small size on different OS

wrote:

it is passed...
Oblate pictures??

But one file.
It would be possible tar to offer, but zip it is more spread in any libraries.

6

Re: Storage by application of a great number of pictures of the small size on different OS

mraklbrw wrote:

Each time at program start to unpack - the bad variant.

Not at start, and before show. And not in a file, and in storage. To accelerate unpacking it is possible even to deliver a compression mode on "without compression".

7

Re: Storage by application of a great number of pictures of the small size on different OS

mraklbrw wrote:

faced such problem - it is developed  application (Windows, Android, probably, IOS).

The problem in what expresses? The falojvaja system is a database for storage of files, it is better still invented than nothing concerning effective storage.
Store files in folders on 500-1000 files in one folder. All.

8

Re: Storage by application of a great number of pictures of the small size on different OS

wrote:

mraklbrw;
Brakes arise when such amount of files are in one folder. From practice - in a folder should not be more 1,5 files

+1
In file system it is bad - it is necessary to be perverted with artificial  sharing
Files on binary in my history - on two-level (26+10) * (26+10)  to a tree (letters of the Latin alphabet + digits).
And to a file attributed  - depending on which stuffed files on a tree.
On first two  characters took the first directory, on the second - the second.
It sufficed, the office collapsed before system degeneration.
The description of a file and  lay in   for search.
To take easier at once SQLite

9

Re: Storage by application of a great number of pictures of the small size on different OS

miksoft wrote:

in zip-archive.

In a year of operation there will be that 90 % of pictures - already packed jpg

10

Re: Storage by application of a great number of pictures of the small size on different OS

tchingiz wrote:

it is passed...
In a year of operation there will be that 90 % of pictures - already packed jpg

And please. Though all of 100 %. An essence not in compression, an essence in one file and the container with which it is simple to work.

11

Re: Storage by application of a great number of pictures of the small size on different OS

Lightroom stores a preview-picture in hierarchy of directories. Also does not brake show of a part from hundreds thousand .
It is checked by electronics.

12

Re: Storage by application of a great number of pictures of the small size on different OS

miksoft wrote:

it is passed...
And please. Though all of 100 %. An essence not in compression, an essence in one file and the container with which it is simple to work.

Operation will be spent for compression?
Or it is possible to save without compression?

13

Re: Storage by application of a great number of pictures of the small size on different OS

In file system - noticeable degradation of speed of access - is available;
zip the archive too would need to be tested on a great number of pictures and a great number of insertions of removals in/from archive

14

Re: Storage by application of a great number of pictures of the small size on different OS

tchingiz wrote:

operation will be spent for compression?
Or it is possible to save without compression?

Many archivers allow to set a compression level, and one of variants "without compression", i.e. simply interpose a file into archive without changes.

15

Re: Storage by application of a great number of pictures of the small size on different OS

The variant with archive of pictures without compression is almost equivalent to a variant of the selected volume under storage of these pictures. And storages in one directory. All difference - requests from application are processed not file , and by compression/release library. When the amount passes for tens thousand brakes begin the same order, as at storage in file system, and even on almost same almost to the reason - impossibility to cache at level of application a location of a separate file, passing file  or library () compressions. On a cache of OS of hope it is not enough. To hold a file permanently opened through library  that it did not drop the archive directory?
I would suggest to think of stream storage of meta files in a file-library is allows to read on start of one times and  in application a location of separate meta files in the big file of an image library more likely and to read out them when be required, at once on known offset and the size.

16

Re: Storage by application of a great number of pictures of the small size on different OS

It is possible to push all in one big picture. In games so do.

17

Re: Storage by application of a great number of pictures of the small size on different OS

mayton wrote:

It is possible to push all in one big picture. In games so do.

And here it also will be a perversion

18

Re: Storage by application of a great number of pictures of the small size on different OS

Dima T wrote:

it is passed...
Many archivers allow to set a compression level, and one of variants "without compression", i.e. simply interpose a file into archive without changes.

Apprx.
And if it is a lot of pictures, of course, it is not necessary to try to discover what that of them, at
The help of different descriptions  (I on   hint a faith) and
It is not necessary to search for lost-absent pictures (which appear as a result of errors
In application)?
And the utility zip.exe to use more conveniently, than the utility sqlite3.exe?

19

Re: Storage by application of a great number of pictures of the small size on different OS

mraklbrw wrote:

+ removal, application unpacking, information movement from a flash card on storage of phone and is reverse at will of the user - will be long.

On the other hand, storage of pictures in a DBMS has an essential lack - it is impossible to use ready utilities for their handling and on everyone  to write any code.
, all enumerated - not so frequent operations that under them to be set up.
More difficult accurately to make rollbacks of transactions but if such problem is not present - I would leave file storage.

20

Re: Storage by application of a great number of pictures of the small size on different OS

wrote:

it is passed...
And here it also will be a perversion

For icons normally. Especially if they do not change in any way throughout session of the user.

21

Re: Storage by application of a great number of pictures of the small size on different OS

mayton;
IMHO not icons at

22

Re: Storage by application of a great number of pictures of the small size on different OS

Here so, by means of simple adaptations the loaf white (or black) bread can be transformed into a trolley bus ... But what for?
Image processing programs face a problem lifted by the HARDWARE, on 10 times in the course of the day and somehow them bypass. To look, as not easier, the blessing of source codes opened suffices.

23

Re: Storage by application of a great number of pictures of the small size on different OS

On  there is good article about  pictures. I think to the author it it will be useful.
Concerning Windows applications and .
They cannot be written to a line through a comma.
Windows it is easy  300 Mb of pictures.
And with Androidom a certain house-keeper a mode is necessary.
it is a question in a topic mobile
.

24

Re: Storage by application of a great number of pictures of the small size on different OS

There is such variant:
It is possible to create some files-corresponding to categories, the pictures concerning this category will be stored in each file.
When the user selects a certain category, a file from application  is read out and then the necessary pictures from it boot very quickly (since from the RAM).
And, it turns out that at once time when the user works with  a certain category, in the RAM there will be  a maximum 50 MB.
Application should be , therefore it is necessary somehow both for Windows, and for Androdi that there was a similar mechanism of storage and access.

25

Re: Storage by application of a great number of pictures of the small size on different OS

The mechanism can be and a miscellaneous, API should be the general