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

close
Link copied to clipboard
open override fun close()
copyToPath
Link copied to clipboard
fun copyToPath(path: String)
Copies the attachment to the specified file path.
getData
Link copied to clipboard
fun getData(): ByteArray
Returns the attachment's data as a ByteArray.
getInputStream
Link copied to clipboard
fun getInputStream(): FileInputStream
Returns an input stream for the attachment file.

Properties

metadata
Link copied to clipboard
val metadata: Map<String, String>
the attachment's metadata.