DittoAttachment

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.

Properties

Link copied to clipboard
val id: String

The attachment's ID.

Link copied to clipboard
val len: ULong
Link copied to clipboard

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
protected fun finalize()

Close before garbage collection.

Link copied to clipboard

Returns the attachment's data as a ByteArray.

Link copied to clipboard

Returns an input stream for the attachment file.

Link copied to clipboard

BigInteger version of len for Java compatibility.