of

fun of(bytes: ByteArray, mediaType: String): Attachment.Data

Returns the file with the bytes bytes and the media type mediaType.