4D Internet Commands v14IT_Encode |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Internet Commands v14
IT_Encode
|
IT_Encode ( fileName ; encodedFile ; encodedMode ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
fileName | Text |
![]() |
A LocalPath to a file | |||||
encodedFile | Text |
![]() |
LocalPath file specification | |||||
![]() |
Path to resulting encoded file | |||||||
encodedMode | Integer |
![]() |
1 = BinHex 2 = Base64 (Data fork only) 3 = AppleSingle 4 = AppleDouble 5 = AppleSingle AND Base64 6 = AppleDouble AND Base64 7 = UUEncode 8 = MacBinary | |||||
Function result | Integer |
![]() |
Error Code | |||||
The IT_Encode command encodes a file using the encodeMode specified. The specified file will not be altered and an encoded copy will be created. The name of the encoded file created will be the original file name plus a suffix appended to specify the encoding method. For Binhex encoding, the suffix ".hqx" will be appended. For Base64 encoding, the suffix ".b64" will be appended. For AppleSingle encoding, the suffix ".as" will be appended.
fileName takes a full pathname specification to a file you want to Encode. If an null string is passed in this parameter the user will be prompted with a dialog to select a file.
encodedFile can be passed:
encodeMode identifies which encoding method to apply to the file. The default value is 1 for binhex encoding. Other methods are:
Code | Scheme |
1 | BinHex |
2 | Base64 (Data fork only) |
3 | AppleSingle |
4 | AppleDouble |
5 | AppleSingle and Base64 |
6 | AppleDouble and Base64 |
7 | UUEncode |
8 | MacBinary |
When encoding using AppleDouble (encodeModes 4 & 6), two files are created named "%filename" and "filename".
Product: 4D Internet Commands
Theme: IC Utilities
Number:
88910
Modified: 4D Internet Commands 6.8.1
4D Internet Commands ( 4D Internet Commands v11.4)
4D Internet Commands ( 4D v13.2)
4D Internet Commands ( 4D Internet Commands v12.1)
4D Internet Commands ( 4D Internet Commands v14 R2)
4D Internet Commands ( 4D Internet Commands v14)
4D Internet Commands ( 4D Internet Commands v14 R3)
4D Internet Commands ( 4D Internet Commands v14 R4)