Skip to content

Commit cf78a63

Browse files
committed
readme update
Signed-off-by: rahul <[email protected]>
1 parent 6771ddc commit cf78a63

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,27 @@ $fileEncryptor->decryptFile();
130130
$stream->startStreaming();
131131
132132
```
133+
134+
**File Compression**
135+
136+
```
137+
138+
$testFile = 'movie.csv';
139+
$compressedZipFilename = 'compressed.zip';
140+
141+
$this->fileHandler->compress($testFile, $compressedZipFilename);
142+
143+
```
144+
145+
**File Decompression**
146+
147+
```
148+
149+
$compressedZipFilename = 'compressed.zip';
150+
$extractPath = 'extracted_contents';
151+
152+
$this->fileHandler->decompress($compressedZipFilename, $extractPath);
153+
154+
```
155+
156+

0 commit comments

Comments
 (0)