net.corda.core.contracts / Attachment / extractFile

extractFile

open fun extractFile(path: String, outputTo: OutputStream): Unit

Finds the named file case insensitively and copies it to the output stream.

Exceptions

FileNotFoundException - if the given path doesnt exist in the attachment.