fixing bug where wrapper could not write to memory stream#26655
fixing bug where wrapper could not write to memory stream#26655

owncloud/core,owncloud/core,pollopolea/core,owncloud/core,pollopolea/core,owncloud/core,pollopolea/core,phil-davis/core,owncloud/core,pollopolea/core,pollopolea/core