NET SFTP Library
DecompressFile Method
Example 






KellermanSoftware.NetSFtpLibrary Namespace > SFTP Class : DecompressFile Method
Decompress a file using the specified compression type
Syntax
'Declaration
 
Public Sub DecompressFile( _
   ByVal compressionType As CompressionType, _
   ByVal inputFilePath As System.String, _
   ByVal outputFilePath As System.String _
) 
'Usage
 
Dim instance As SFTP
Dim compressionType As CompressionType
Dim inputFilePath As System.String
Dim outputFilePath As System.String
 
instance.DecompressFile(compressionType, inputFilePath, outputFilePath)
public void DecompressFile( 
   CompressionType compressionType,
   System.string inputFilePath,
   System.string outputFilePath
)
public procedure DecompressFile( 
    compressionType: CompressionType;
    inputFilePath: System.String;
    outputFilePath: System.String
); 
public function DecompressFile( 
   compressionType : CompressionType,
   inputFilePath : System.String,
   outputFilePath : System.String
);
public: void DecompressFile( 
   CompressionType compressionType,
   System.string* inputFilePath,
   System.string* outputFilePath
) 
public:
void DecompressFile( 
   CompressionType compressionType,
   System.String^ inputFilePath,
   System.String^ outputFilePath
) 

Parameters

compressionType
inputFilePath
outputFilePath
Example
SFTP sftp = new SFTP(); //Trial Mode            
            //SFTP sftp = new SFTP("place user name here", "place license key here");
             
            string inputFilePath = "c:\\bigfile.txt");
            string compressedPath = "c:\compressed.txt");
            string decompressedPath = "c:\decompressed.txt");
             
            sftp.CompressFile(KellermanSoftware.EncryptionLibrary.CompressionType.GZip, inputFilePath, compressedPath);
            sftp.DecompressFile(KellermanSoftware.EncryptionLibrary.CompressionType.GZip, compressedPath, decompressedPath);
Dim sftp As SFTP = New SFTP() 'Trial Mode
            'Dim sftp As SFTP = New SFTP("place user name here", "place license key here");
             
            Dim inputFilePath As String = "c:\bigfile.txt")
            Dim compressedPath As String = "c:\compressed.txt")
            Dim decompressedPath As String = "c:\decompressed.txt")
             
            sftp.CompressFile(KellermanSoftware.EncryptionLibrary.CompressionType.GZip, inputFilePath, compressedPath)
            sftp.DecompressFile(KellermanSoftware.EncryptionLibrary.CompressionType.GZip, compressedPath, decompressedPath)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SFTP Class
SFTP Members