Bug 47693: Fixed the DocumentResource.updateDocumentContent() 

It now successfully uploads files to the Document Mananger if you use a FileInputStream.
(It needs to have something with a set content-length).