'Declaration
Public Overloads Shared Function CompressFile( _ ByVal zipOutputStream As ICSharpCode.SharpZipLib.Zip.ZipOutputStream, _ ByVal fileName As String, _ ByVal fileStream As Stream _ ) As Boolean
'Usage
Dim zipOutputStream As ICSharpCode.SharpZipLib.Zip.ZipOutputStream Dim fileName As String Dim fileStream As Stream Dim value As Boolean value = ZipHelper.CompressFile(zipOutputStream, fileName, fileStream)
public static bool CompressFile( ICSharpCode.SharpZipLib.Zip.ZipOutputStream zipOutputStream, string fileName, Stream fileStream )
Parameters
- zipOutputStream
- zip output stream
- fileName
- Name of the file
- fileStream
- file stream
Return Value
successful or not