| 4D v20IT_Decode | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|  | 
    4D v20
 IT_Decode 
         | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| IT_Decode ( fileName ; decodedFile ; decodeMode ) -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| fileName | Text |   | LocalPath to an encoded file | |||||
| decodedFile | Text |   | LocalPath file specification | |||||
|   | Path of decoded file | |||||||
| decodeMode | Integer |   | Mac & Win: 1 = BinHex 2 = Base64 (Data fork only) 7 = UUEncode 8 = MacBinary; Mac only: 3 = AppleSingle 4 = AppleDouble 5 = AppleSingle AND Base64 6 = AppleDouble AND Base64 | |||||
| Function result | Integer |   | Error Code | |||||
The IT_Decode command decodes a file using the decodeMode specified. The specified file will not be altered and a decoded copy will be created.
fileName takes a full pathname specification to a file you want to decode.
decodedFile can be passed:
decodeMode identifies which decoding method to apply to the file. The default value is 1 for binhex decoding. Other methods are:
 
| Code | Scheme | Available on | 
| 1 | BinHex | Win & Mac | 
| 2 | Base64 (Data fork only) | Win & Mac | 
| 3 | AppleSingle | Mac | 
| 4 | AppleDouble | Mac | 
| 5 | AppleSingle and Base64 | Mac | 
| 6 | AppleDouble and Base64 | Mac | 
| 7 | UUEncode | Win & Mac | 
| 8 | MacBinary | Win & Mac | 
When decoding using AppleDouble (decodeModes 4 & 6), this command looks for a file named "%filename" for the resource fork.
	Product:  4D
	Theme:  IC Utilities
	Number:  
        88909
        
        
        
	
	Modified:  4D Internet Commands 6.8.1
	Modified:  4D Internet Commands v16 R2
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	4D Internet Commands ( 4D v20)
	
	
 Add a comment
Add a comment