Addition of stream based methods for upload/downloading of documents