abstract fun importAttachment(jar: InputStream): SecureHash
Inserts the given attachment into the store, does
Note that you should not pass a JarInputStream into this method and it will throw if you do, because access to the raw byte stream is required.
FileAlreadyExistsException
- if the given byte stream has already been inserted.IllegalArgumentException
- if the given byte stream is empty or a JarInputStream.IOException
- if something went wrong.