Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.08.08;
Скачать: CL | DM;

Вниз

Как из WinZip a прочитать файл !   Найти похожие ветки 

 
Katleta   (2004-07-24 01:58) [0]

Имеется обычный WinZip !
В нем лежат 2 файла !

BMP
TXT

Так вот как мне сделать так что бы прога читала из этого WinZip"a
графический файл и текстовый !
ЗАРАНЕЕ СПАСИБО !


 
Леха   (2004-07-24 09:17) [1]

Для этого нужно знать структуру архива zip, а иначе никак


 
Delf ©   (2004-07-24 11:29) [2]

Есть много безплатных компонент которые работают з zip-архивами
Поищи в нете.
Да и зачем далеко ходить, на этом сайте в разделе кладовка есть такие компоненты
http://www.delphimaster.ru/cgi-bin/search.pl?words=zip&n=10


 
Aleksey V.P.   (2004-07-24 12:35) [3]

Abbrevia v3.x (бесплатные) от TurboPower software company


 
Katleta   (2004-07-24 22:10) [4]


> http://www.delphimaster.ru/cgi-bin/search.pl?words=zip&n=10

Все компоненты там только для ДОБАВЛЕНИЯ ФАЙЛОВ в ZIP И ИЗВЛЕЧЕНИЕ !

А ЧТЕНИЯ ЧЕТО НЕТУ !


 
тихий вовочка ©   (2004-07-24 23:09) [5]

Я использую ZipMaster. Открываешь файл, и создаешь поток в который нужный файл распаковывается. При этом ничего и никуда не распаковывается, кроме как в памяти.


 
Katleta   (2004-07-25 01:02) [6]

A.  Local file header:

       local file header signature        4 bytes  (0x04034b50)
       version needed to extract          2 bytes
       general purpose bit flag           2 bytes
       compression method                 2 bytes
       last mod file time                 2 bytes
       last mod file date                 2 bytes
       crc-32                             4 bytes
       compressed size                    4 bytes
       uncompressed size                  4 bytes
       filename length                    2 bytes
       extra field length                 2 bytes

       filename (variable size)
       extra field (variable size)

 B.  Central directory structure:

     [file header] . . .  end of central dir record

     File header:

       central file header signature      4 bytes  (0x02014b50)
       version made by                    2 bytes
       version needed to extract          2 bytes
       general purpose bit flag           2 bytes
       compression method                 2 bytes
       last mod file time                 2 bytes
       last mod file date                 2 bytes
       crc-32                             4 bytes
       compressed size                    4 bytes
       uncompressed size                  4 bytes
       filename length                    2 bytes
       extra field length                 2 bytes
       file comment length                2 bytes
       disk number start                  2 bytes
       internal file attributes           2 bytes
       external file attributes           4 bytes
       relative offset of local header    4 bytes

       filename (variable size)
       extra field (variable size)
       file comment (variable size)

     End of central dir record:

       end of central dir signature       4 bytes  (0x06054b50)
       number of this disk                2 bytes
       number of the disk with the
          start of the central directory  2 bytes
       total number of entries in
          the central dir on this disk    2 bytes
       total number of entries in
          the central dir                 2 bytes
       size of the central directory      4 bytes
       offset of start of central
          directory with respect to
          the starting disk number        4 bytes
       zipfile comment length             2 bytes
       zipfile comment (variable size)

это случайно не структура  ? :)


 
Piter ©   (2004-07-25 01:04) [7]

Katleta   (24.07.04 22:10) [4]

Все компоненты там только для ДОБАВЛЕНИЯ ФАЙЛОВ в ZIP И ИЗВЛЕЧЕНИЕ !

А ЧТЕНИЯ ЧЕТО НЕТУ !


а после извлечения религия мешает этот файл прочесть?


 
Katleta   (2004-07-25 01:06) [8]

Ну мне не обязательно в ZIP
Можно и в другой формат !
Самое главное чтоб графику не стырили из проги !

Я нашел GPA Manager а как им пользоваться не знаю
т.е как работать с архивом не знаю


 
Gero ©   (2004-07-25 03:21) [9]


> Самое главное чтоб графику не стырили из проги !

LOL

Кто ее может стырить? Грабители?


 
Katleta   (2004-07-25 03:38) [10]

Найдутся всякие умники !
Ты лучше бы помог чем нибуть плз :)


 
Gero ©   (2004-07-25 04:00) [11]


> Katleta   (25.07.04 03:38)

А что тебе надо?
Если [0], то ответ тебе уже дали.
Если что другое, говори, не стесняйся.


 
Sanek_metaller ©   (2004-07-25 04:32) [12]

А из зипа че стырить сложно?


 
Katleta   (2004-07-25 20:57) [13]


> А из зипа че стырить сложно?


Если он будет с паролем то на врятли :)


 
Луарвик   (2004-07-25 21:23) [14]

На этом сайте компоненты ваще качаються?


 
Katleta   (2004-07-26 01:49) [15]

НЕТ



Страницы: 1 вся ветка

Текущий архив: 2004.08.08;
Скачать: CL | DM;

Наверх




Память: 0.5 MB
Время: 0.041 c
1-1090510591
glGLU
2004-07-22 19:36
2004.08.08
Timer


3-1089900139
Delpher
2004-07-15 18:02
2004.08.08
Таблица в таблице.


14-1090516638
хм
2004-07-22 21:17
2004.08.08
приму участие


1-1090749689
Endi
2004-07-25 14:01
2004.08.08
Ошибка доступа при згрузке файла в реестр


1-1090606254
sashok
2004-07-23 22:10
2004.08.08
Динамически создаваемые компоненты.