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. } });
Comments (1)
Apr 28
Anonymous says:
17221722
Add Comment