klyn.mails.MimeBodyPart.attachmentBase64
method
public static attachmentBase64(fileName as String, base64Content as String) as MimeBodyPart:
Description
Creates an attachment from Base64 content. Use this helper when the payload is already available as Base64 text. This is the operational path for binary attachments until byte-oriented file I/O is fully stabilized in the runtime.
import klyn.mails

part = MimeBodyPart.attachmentBase64("archive.bin", "AQID", "application/octet-stream")
print(part.transferEncoding)