DittoAttachment

class DittoAttachment : Closeable

Represents an attachment and can be used to insert the associated attachment into a document at a specific key.

Parameters

metadata

the attachment's metadata.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
fun copyToPath(path: String)

Copies the attachment to the specified file path.

Link copied to clipboard
fun getData(): ByteArray

Returns the attachment's data as a ByteArray.

Link copied to clipboard
fun getInputStream(): FileInputStream

Returns an input stream for the attachment file.

Properties

Link copied to clipboard
val metadata: Map<String, String>