fileContent
Creates a new FileContent using the DSL builder.
Example:
val fileContent = fileContent {
name = "example.txt"
mimeType = "text/plain"
bytes = "Hello World".encodeToByteArray()
}Content copied to clipboard
Return
A new FileContent instance
Parameters
init
The lambda to configure the file content
Creates a new FileContent using the Java-friendly Consumer.
Return
A new FileContent instance
Parameters
init
The consumer to configure the file content