You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Peter Schmidt <pe...@alfresco.com> on 2013/03/04 16:20:40 UTC

base64 encoded streaming

Hi all
I spent some more time on the base64 encoded streaming.
The fruits from these efforts have just been submitted to the SVN repo.

Here a quick summary

   1. CMISHttpUploadRequest implements the NSStream protocol. This is to
   pair the inputStream (used by URL connection) with an output stream to
   which the base64 encoded data will be written. This approach has been
   demonstrated by Apple in one of their sample codes - and as an alternative
   to the approach below.
   2. An alternative approach to the base64 encoded streaming: The code
   contains a new class CMISBase64InputStream - extending NSInputStream.
   However, for this to work with URL connections (HTTPBodyStream =
   inputstream) a set of Core Foundation methods must be implemented. Even
   though the class does not make any direct calls to them (but the underlying
   URL API does).

A new Unit test to upload a very small file (2 bytes) was added.
Some clean up.

-- 
Kind regards
Peter

-----------
*Peter Schmidt*
*Alfresco Software Ltd.*
*UK: 07748 185496*
*Int.: 0044 7748 185496*
*Skype: pweschmidt*