AttachmentStorage.importOrGetAttachment - corda

corda / net.corda.core.node.services / AttachmentStorage / importOrGetAttachment

# importOrGetAttachment

`abstract fun importOrGetAttachment(jar: InputStream): AttachmentId`
Deprecated: More attachment information is required

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