class DittoAttachment : Closeable
Represents an attachment and can be used to insert the associated attachment into a document at a specific key.
metadata
- the attachment's metadata.
val metadata: Map<String, String>
the attachment's metadata. |
fun close(): Unit |
|
fun copyToPath(path: String): Unit
Copies the attachment to the specified file path. |
|
fun getData(): ByteArray
Returns the attachment's data as a |
|
fun getInputStream(): FileInputStream
Returns an input stream for the attachment file. |