SSH/SFTP Downloading Text file produces strange characters?

Question: I receive strange characters when downloading a text file using ReadFileText. Why does this happen? Answer: Using SSH/SFTP, files are downloaded exactly as-is byte-for-byte except if you call the ReadFileText* methods. The ReadFileText* methods require a charset (i.e. character encoding) to be specified in the method arguments. This allows the method to interpret the bytes according to a specific […]

Verify UnlockComponent Success w/ Purchased Unlock Code

To manually verify that a valid purchased unlock code was passed to UnlockComponent, examine the contents of the LastErrorText after calling UnlockComponent or UnlockBundle. The following message indicating a purchased unlock code was used should be present: “Component successfully unlocked using purchased unlock code.” See below: ChilkatLog:   UnlockBundle:     DllDate: Jul 23 2016     ChilkatVersion: 9.5.0.59     UnlockPrefix: ABCXYZ.CBX0618 […]

LastErrorText Standard Information

All Chilkat classes / components use a property named LastErrorText.  It provides a way to get detailed information about what happened during any Chilkat method call.  The LastErrorText will contain information even when the method call is successful. In almost every case, the LastErrorText will begin with information such as this: ChilkatLog: Decrypt: DllDate: Nov 14 2021 ChilkatVersion: 9.5.0.88 UnlockPrefix: […]

UnlockComponent LastErrorText shows exact string passed to it.

If the string argument passed to UnlockComponent or UnlockBundle is NOT a purchased unlock code, then the LastErrorText will contain the exact string passed to it by your application.  In this case, the string “Hello World” was passed to UnlockBundle. If UnlockComponent returns 0/false, check carefully the exact string being passed to it.  Make sure the exact purchased unlock code […]

Sending Emails with Large Attachments

Question: I have downloaded the Chilkat Email component for POP3/SMTP.  When I tried to send email by attaching a file of size of  2 MB,  the email is not been sent.  Could you please let me know how I can send large size attachments using the Chilkat component? Answer: There is no limitation in the Chilkat Email component.  It can […]

426 Connection closed; transfer aborted.

Problem: An FTP transfer fails with the following message found in LastErrorText: 426 Connection closed; transfer aborted Solution: A local firewall may be blocking the connection. Try switching between Active and Passive mode and try again. See these examples: ASP: Active and Passive Modes in FTP SQL Server: Active and Passive Modes in FTP C#: Active and Passive Modes in […]

Create Amazon CloudFront Signed URL in VBScript (for ASP)

This sample code snippet is graciously provided by a Chilkat customer: See Also: Chilkat RSA ActiveX Reference Documentation … resource = “http://*********.cloudfront.net/something.jpg” ‘Expiration expiration = 1278680686 ‘Policy policy = “{“”Statement””:[{“”Resource””:””” & resource & _ “””,””Condition””:{“”DateLessThan””:{“”AWS:EpochTime””:” & _ expiration & “}}}]}” ‘Chilkat Component set pkey = Server.CreateObject(“Chilkat.PrivateKey”) ‘Load the private key from an RSA PEM file: private_key = pkey.LoadPemFile(“c:\pk-xxx.pem”) ‘Get the […]

Adding a Callback Event Handler in VB.NET

Dim “WithEvents” Dim WithEvents ftp As Chilkat.Ftp2 Add some code to create a new instance of the object. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ftp = New Chilkat.Ftp2() ftp.EnableEvents = True ftp.HeartbeatMs = 100 … Select the “ftp” object. Select the event. This causes Visual Studio to generate the event handler function. Add your […]

FTP Auth TLS / SSL problem caused by Firewall Restrictions

The following Chilkat FTP2 error was found by a Chilkat customer to be caused by firewall restrictions. I do not know the specifics of the firewall restrictions that caused the error, but the LastErrorText (with all customer information removed) is reproduced here to help identify this problem in the future. The important point is to see that the SSL/TLS handshake […]