rhbz896356 use stream size when creating blob for document upload