corda / net.corda.testing.services / MockAttachmentStorage / importOrGetAttachment

importOrGetAttachment

fun importOrGetAttachment(jar: InputStream): AttachmentId

Inserts or returns Attachment Id of attachment. Does not throw an exception if already uploaded.

Parameters

jar - InputStream of Jar file

Return
AttachmentId of uploaded attachment