These are chat archives for OfficeDev/ews-java-api

24th
Dec 2014
Greg Cole
@gmuellercole
Dec 24 2014 18:24
I'm looking to retrieve the content of an attachment. I'm using code as below. But when I see what it is doing under the covers, it looks like the entire contents is being sent to client inside a single HTTP payload (maybe it is base64 encoded?). Anyway that is a one shot approach - is there a way to stream the content (so I can handle arbitrary size)?
            FileAttachment fa = (FileAttachment)attachment;
            OutputStream os = new FileOutputStream(dest);
            fa.load(os);
            os.close();