Spread WinForms 15
FarPoint.Excel Assembly / FarPoint.Excel Namespace / ZipHelper Class / CompressFile Method / CompressFile(ZipOutputStream,Crc32,String,Stream) Method
zip output stream
Cyclic redundancy check
Name of the file
file stream


In This Topic
CompressFile(ZipOutputStream,Crc32,String,Stream) Method
In This Topic
Compresses the file.
Syntax
'Declaration
 
Public Overloads Shared Function CompressFile( _
   ByVal zipOutputStream As ICSharpCode.SharpZipLib.Zip.ZipOutputStream, _
   ByVal crc As ICSharpCode.SharpZipLib.Checksums.Crc32, _
   ByVal fileName As String, _
   ByVal fileStream As Stream _
) As Boolean
 
'Usage
 
Dim zipOutputStream As ICSharpCode.SharpZipLib.Zip.ZipOutputStream
Dim crc As ICSharpCode.SharpZipLib.Checksums.Crc32
Dim fileName As String
Dim fileStream As Stream
Dim value As Boolean
 
value = ZipHelper.CompressFile(zipOutputStream, crc, fileName, fileStream)

Parameters

zipOutputStream
zip output stream
crc
Cyclic redundancy check
fileName
Name of the file
fileStream
file stream

Return Value

successful or not
See Also