473,750 Members | 2,541 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

zlib - adding many files

K.
Hello!

Is it possible to create i.e. truck.gz compressed file, which
contains i.e. 4 files: truck1.jpg, truck2.jpg, truck3.jpg, truck4.jpg?

If so, how should I implement such code to achieve this using gzwrite and
any other functions?

I couldn`t find the example on internet.

Thank you in advance
M.
Jul 23 '08 #1
3 1414
K.

Użytkownik "K." <ha************ @poczta.onet.pl napisał w wiadomości
news:g6******** **@news.onet.pl ...
Hello!

Is it possible to create i.e. truck.gz compressed file, which
contains i.e. 4 files: truck1.jpg, truck2.jpg, truck3.jpg, truck4.jpg?

If so, how should I implement such code to achieve this using gzwrite and
any other functions?

I couldn`t find the example on internet.

Thank you in advance
M.
I have solved the problem.
Gzip functions doesn`t give me such funcionality.
I used pclzip.lib.php and I can pack a few files into one archive file

M.
Jul 23 '08 #2
K. wrote:
Użytkownik "K." <ha************ @poczta.onet.pl napisał w wiadomości
news:g6******** **@news.onet.pl ...
>Hello!

Is it possible to create i.e. truck.gz compressed file, which
contains i.e. 4 files: truck1.jpg, truck2.jpg, truck3.jpg, truck4.jpg?

If so, how should I implement such code to achieve this using gzwrite and
any other functions?

I couldn`t find the example on internet.

Thank you in advance
M.

I have solved the problem.
Gzip functions doesn`t give me such funcionality.
I used pclzip.lib.php and I can pack a few files into one archive file

M.

What has this to do with php?
Jul 23 '08 #3
K.

Uzytkownik <sheldonlgnapis al w wiadomosci
news:Rv******** *************** *******@giganew s.com...
K. wrote:
>Użytkownik "K." <ha************ @poczta.onet.pl napisał w wiadomości
news:g6******* ***@news.onet.p l...
>>Hello!

Is it possible to create i.e. truck.gz compressed file, which
contains i.e. 4 files: truck1.jpg, truck2.jpg, truck3.jpg, truck4.jpg?

If so, how should I implement such code to achieve this using gzwrite
and
any other functions?

I couldn`t find the example on internet.

Thank you in advance
M.

I have solved the problem.
Gzip functions doesn`t give me such funcionality.
I used pclzip.lib.php and I can pack a few files into one archive file

M.

What has this to do with php?

I don`t know what you mean.

M.
Jul 23 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3526
by: Tony | last post by:
Hello, Any assistance would be appreciated: As the subject suggests I am trying to gunzip files using the Compress::Zlib module. The following is basically the code that I am working with: ------------------------------------------------ ------------------------------------------------
6
3429
by: Laszlo Zsolt Nagy | last post by:
Sorry, I realized that the import zlib was not executed from my (working) service. So here is the question: why can't I use zlib from a win32 service? Is there any way to make it working? >------------- >Python could not import the service's module > File "T:\Python\Projects\NamedConnector\Service.py", line 17, in ? > from Processor import * > File "c:\Python\Projects\NamedConnector\Processor.py", line 35, in ?
1
7942
by: Dennis Powell | last post by:
Does anyone have a successful implementaion of the zlib.dll in VB. Net they can show me. I'm writting a class encaplsulating zlib functionality and I keep getting a System.NullReferenceException (Object reference not set to an instance of an object) when I try to call the dll's compress function. The function in the dll is declared as such: int compress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen) I've...
0
1189
by: Jan Prochazka | last post by:
Hi, I need to decompress zip archive. I wrote a parser of zip file, i obtain the compressed data, but when i call zlib.decompress(data) on them, it throws this error: decbuf = decompressor.decompress(compressed_data) error: Error -3 while decompressing: unknown compression method I try to compress by zlib the same data which are in that file, the
0
1169
by: Jan Prochazka | last post by:
Hi, I need to decompress zip archive. I wrote a parser of zip file, i obtain the compressed data, but when i call zlib.decompress(data) on them, it throws this error: decbuf = decompressor.decompress(compressed_data) error: Error -3 while decompressing: unknown compression method I try to compress by zlib the same data which are in that file, the
4
7437
by: shamzz | last post by:
Hi, I've compiled (configure/make/make install) Python 2.4.4 from source on Suse Linux Enterprise Server 9 (x64). I need Python to be compiled with Zlib so that I can compile and use Zope. After installing Python, zlib doesn't seem to have been compiled with it, I've checked the /usr/local/lib/python2.4/lib-dynload/ folder and
0
1354
by: Bint | last post by:
Hello, I am trying to decompress some data in a file, from PHP. It's data that has been zlib-compressed on a handheld device and sent wirelessly to the PHP server. I can open the file and read some regular data from it. When I get to the position where my zlib compressed information starts, I make these calls: $zlib_filter = stream_filter_append($cellfile, 'zlib.inflate',
2
1838
by: Bint | last post by:
Hi, I asked a question yesterday but no one answered, I will try again. Anyone use stream_filter_append, specifically to decompress zlib-compressed data? I'm trying to use it on a section of data in a file, but I don't know if that's possible. Most of my file is made up of normal bytes which I read with fread. When I get to the part which is zlib-compressed, I try to attach the zlib filter and read my bytes. But I get the error: ...
4
7542
by: ZedLep | last post by:
Hello, First of all I'm a relatively inexperienced C++ programmer so this may seem a simple question to answer. I'm trying to use zlib from www.zlib.net to decompress some data. However I run into an error when I try to compile the program : E2015 Ambiguity between 'Byte' and 'System::Byte' And the offending code (within zconf.h) is :
4
2930
by: MZ | last post by:
Hello! I`ve tried to instal zlib library to use zip functions to pack files into zip archive. I don`t know how I have to configure zlib to make it work. I have built up php.ini file and I`ve put such line --with-zlib=/home/domena_nazwa/domains/test.com/public_html/gallery/lib/zziplib.lib
0
9396
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9342
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8263
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4716
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4888
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3323
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2226
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.