Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
cmislib 0.5.1
-
None
-
None
-
Windows 32 bit, Anaconda Python 2.7
Description
I'm getting a memory error when I call Folder.createDocument(), passing a contentFile of 120MB or greater. Smaller files are uploading without trouble.
I understand from Jeff Potts that it would help if the library implemented the appendContentStream method available in CMIS 1.1.
Thanks for any suggestions!
-Carl
File "C:\Anaconda\lib\site-packages\cmislib-0.5.1-py2.7.egg\cmislib\model.py", line 2756, in createDocument contentEncoding) File "C:\Anaconda\lib\site-packages\cmislib-0.5.1-py2.7.egg\cmislib\model.py", line 1185, in createDocument result = self._cmisClient.post(postUrl.encode('utf-8'), xmlDoc.toxml(encodin g='utf-8'), ATOM_XML_ENTRY_TYPE) File "C:\Anaconda\lib\xml\dom\minidom.py", line 46, in toxml return self.toprettyxml("", "", encoding) File "C:\Anaconda\lib\xml\dom\minidom.py", line 58, in toprettyxml self.writexml(writer, "", indent, newl, encoding) File "C:\Anaconda\lib\xml\dom\minidom.py", line 1749, in writexml node.writexml(writer, indent, addindent, newl) File "C:\Anaconda\lib\xml\dom\minidom.py", line 814, in writexml node.writexml(writer, indent+addindent, addindent, newl) File "C:\Anaconda\lib\xml\dom\minidom.py", line 814, in writexml node.writexml(writer, indent+addindent, addindent, newl) File "C:\Anaconda\lib\xml\dom\minidom.py", line 810, in writexml self.childNodes[0].writexml(writer, '', '', '') File "C:\Anaconda\lib\xml\dom\minidom.py", line 1038, in writexml _write_data(writer, "%s%s%s" % (indent, self.data, newl)) File "C:\Anaconda\lib\xml\dom\minidom.py", line 298, in _write_data writer.write(data) File "C:\Anaconda\lib\codecs.py", line 351, in write data, consumed = self.encode(object, self.errors) MemoryError