Zip Compress JPG?

Question: May I know that which Zip method in your component could give the best compression? We are trying to Zip some JPEG, and perhaps could reduce the size by half or more. Answer: The JPG file format is already a compressed format, so usually very little is gained in trying to compress it — the result is a lot […]

VB.NET Compress String to Byte Array

Demonstrates how to use Chilkat.Compression to compress a string to a byte array: Private Sub CompressStringToBytes() Dim compress As New Chilkat.Compression() ‘ Any string argument automatically begins a 30-day trial. Dim success As Boolean success = compress.UnlockComponent(“30-day trial”) If (success <> True) Then MsgBox(“Compression component unlock failed”) Exit Sub End If ‘ Use the “deflate” algorithm, which is the algorithm […]

UnlockComponent or UnlockBundle returns False/0

If UnlockComponent or UnlockBundle fails, check the following.  (For more information about how UnlockComponent works, please read this:  How UnlockComponent works. You must pass the exact unlock code provided in your receipt email.  The unlock code is case sensitive.  If  you are confident that you are passing the correct unlock code to UnlockComponent (or UnlockBundle), but it returns a failed […]

Where are trial versions?

The downloads at http://www.chilkatsoft.com/downloads.asp are the full-versions of the products, but may also be used in a fully-functional 30-day trial mode.   A Chilkat component/class is unlocked at runtime by calling the UnlockComponent method.  This method must be called once from within your application prior to using any Chilkat objects. It is not required to call UnlockComponent for each instance of […]

Unlocking Chilkat SFTP

To use Chilkat SFTP (Secure File Transfer over SSH) you must use the unlock code for Chilkat SSH.  It should contain the substring “SSH”.  If your unlock code contains the string “FTP”, then you are using the FTP2 unlock code, which is incorrect. The SFTP component/API is part of  the “Chilkat SSH” license: “SFTP” is the Secure File Transfer Protocol […]

Chilkat .NET for x64 (64-bit Windows)

The “An attempt was made to load a program with an incorrect format.” indicates that your program attempted to load a win32 assembly on an x64 Windows OS, or the reverse. There is a separate Chilkat .NET assembly also named ChilkatDotNet2.dll for 64-bit Windows.  It may be downloaded at: http://www.chilkatsoft.com/downloads.asp This is for the 2.0/3.5 (or greater) Framework.  There is […]

Failed to get initial SMTP response..

Question: I have 21 text message service applications running on a single PC. These apps send out weather alerts to radio station listeners several times a day. Each may have a few subscribers to a few hundred subscribers, so at the top of the hour, the messages for the people signed up for that hour are sent. I sometimes get […]

SSH: Failed to read 1st key exchange packet

Here’s an explanation for the following error message: Established TCP/IP connection with SSH server FromServer: SSH-1.5-Cisco-1.25 numBytesRequested: 8 Connection closed by server. Failed to read data on SSH connection. Failed to read 1st key exchange packet Failed. The error message indicates that as soon as the TCP/IP socket connection was accepted by the SSH server, it then decided to disconnect. […]

WriteZipAndClose – Failed to move Zip file

When Chilkat Zip writes a .zip, it first writes to a temporary file. (The location of the temporary file is controlled by the zip.TempDir property.) After the .zip is successfully written to the temp file, it is then renamed (i.e. moved) to the output filename. The reason for doing this is to safeguard an existing .zip when rewriting. If writing […]