e-CryptIt Engine Xojo Plugin

MacBinaryStream.SetDecodeDesitination Method (console safe)

To decide where to put the decoded file and what to name it then use the SetDecodeDestination method.

SetDecodeDesitination(
   dst as FolderItem)

Parameters

dst
The destination file name and location.

Remarks

This variation of the method will on MacOS decode the MacBinary files data and resource fork to a single file. On Windows systems it will decode the data fork into a single file and ignore the resource fork.

Possible Error codes in the LastError property:
-1003 - Desitination file is nil.
-1004 - Destination file is allready set.
-1006 - Could not create file.
Other possible errors: MacOS or Windows file system errors.

Note:
This function should be called right after constructing the class in decode mode. Use the OriginalFileName property to get the name of the original file.

See Also

MacBinaryStream Class