Fetch attachments

Skip to end of metadata
Go to start of metadata

Via Document


Document doc = database.fetchDocument("docId");
Attachment a = doc.getAttachment("logo.png");

a.retrieve(new StreamContext() {
    public void withInputStream(InputStream is) throws IOException {
        // Use the InputStream
        // InputStream will be closed automatically.
    }
});

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.