e-CryptIt Engine Xojo Plugin - Encodings Xojo Plugin |

# YEncEncoder.BeginMultiPart Method (console safe)

To start the process of encoding a file into multi part yEnc files or streams then use the BeginMultiPart function.

BeginMultiPart(
source as FolderItem,
partSize as Integer) as Boolean

#### Parameters

source
  The file to encode into multipart yEnc files.
partSize
  The desired size of each part.

#### Returns

Boolean

#### Remarks

Returns True if it was successful, false if not. Use the LastError property to determine which error occured.
After using this function then the normal thing to do would be to use the EncodePartToFile or EncodePartToStream functions. (See the example project that comes with the plugin)
Always create a new instance of the YEncEncoder class for each file to encode.
Possible errors that this function can generate:

- 0 No Error.
- -1001 Source file was nil.
- -1002 Could not open source file.
- -10100 Unknown internal error.

  #### See Also

  YEncEncoder Class