I have a Corda application running on M6 Release. This app includes inclusion and download of attachments.
To open an attachment, i used to use this approach, inside my API (Accessible from the UI through REST)
val attachment = serviceHub.storageService.attachments.openAttachment(id)
When i upgraded my code to M8, however, the attachments api changed, and i dont have an easy way to do the same. The only methods i have, that are accessible by IdentityAPI (the REST API) are:
How can i do to download an attachment on M8, since i cannot use the same code from M6 anymore?