chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Schmidt <peter.schm...@alfresco.com>
Subject base64 encoded streaming
Date Mon, 04 Mar 2013 15:20:40 GMT
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*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message