public BoxRequestsFile . DownloadFile getDownloadAvatarRequest ( OutputStream outputStream , String userId ) { BoxRequestsFile . DownloadFile request = new BoxRequestsFile . DownloadFile ( userId , outputStream , getAvatarDownloadUrl ( userId ) , mSession ) ; return request ; }
Gets a request that downloads the given avatar to the provided outputStream . Developer is responsible for closing the outputStream provided .