EasyByte Software

Welcome to EasyByte Software

Home Buy Online Products Downloads Support
Sections
Index
About
Installation
Properties
Methods
ASP and dotNET
Further Information
  

 

 

GZCreateGZ Method
 
     

Cryptocx v7 User Guide

 

GZCreateGZ Method

This is the method that you use to create a GZ compressed file, from a given input file. The resultant GZ file can be loaded up with any standards compliant GZ file reader.

 

Description

Create a GZ file

     
Syntax

x = object.GZCreateGZ

The syntax of the GZCreateGZ method has these parts:

 
Part Description
object A Cryptocx v7 control.
x A string that becomes either "TRUE" or "Error: xxx" where xxx is the error message.

       
Remarks You can load the resultant gz file up with any common gz file reader.

GZ file compression compress a single input file, it does not create a compressed archive such as the ZIP algorithm creates. It is most commonly used to compress a TAR archive file to make a tar.gz file from a tar file.

The properties you can set when creating a GZ file are:

Required - SourceFile
Required - DestinationFile

       
Returns

String

     
Example Sample Visual Basic Code to create a GZ file

Where Cryptocx is an instance of a Cryptocx Control.



'' Tell Cryptocx to create the GZ
''

Dim Cryptocx As New EasyByte_Software.Cryptocxv7

Cryptocx.LicenseKey = "DEMO"

Cryptocx.SourceFile = txtSource.Text
Cryptocx.DestinationFile = txtGzFile.Text

theResult = Cryptocx.GZCreateGZ


'' Check to see what has happened (if the compression went ok without errors)
''

If theResult = "TRUE" Then
  '' Ok, the Compression went well with no errors and the gz file was created
Else
  MsgBox theResult
End If


'' Free up Memory Resources
''

Set Cryptocx = Nothing

eds:

 

 

 

 

Back to Contents Page

 

Click here to set this great site as your home page

Or click here to add it to your Favorites.

  
  
 

Copyright (c) EasyByte Software 1998-2008, info@easybyte.com