Hi all just a brief heads-up: I am going to submit a change in the way content is being uploaded from the device to the server. How it works at present: * a temporary file is created containing the CMIS XML and base64 encoded data. * a NSInputStream pointing to the tmp file is created * the HTTP request BodyStream property is being set to this tmp input stream
The new code will do the following: * a new class CMISBase64InputStream is being provided, which inherits from NSInputStream. It is being initialised with the original source input stream (raw data). * the HTTP request BodyStream property is being set to the CMISBase64InputStream object. * when a read request is being sent to the new input stream class, the XML encapsulation and base64 encoding is done on the fly I tested it in both unit tests and a sample app, and it seems to work. Unless there are objections, I will submit the new code by end of play tomorrow, Fri 1 March -- Kind regards Peter ----------- *Peter Schmidt* *Alfresco Software Ltd.* *UK: 07748 185496* *Int.: 0044 7748 185496* *Skype: pweschmidt*
