Re: SharePoint Base64 decoding error in OpenCMIS

2011-04-29 Thread Florian Müller
Hi Jonathan, There are a couple of things going on here. First of all, the headers you have sent in your first email contain "Content-Encoding: gzip". That is, OpenCMIS tries to unzip it. SharePoint should only send compressed content if it is requested by the client. Are you setting the compr

Re: SharePoint Base64 decoding error in OpenCMIS

2011-04-29 Thread Florent Guillaume
OpenCMIS may add headers telling it understands gzip when doing the request. Other headers could influence the results. Anyway a network trace tool like wireshark would help you greatly in diagnosing things. Florent On Fri, Apr 29, 2011 at 12:10 AM, Jonathan Lee wrote: > Hi Florian, > > I am u

Re: SharePoint Base64 decoding error in OpenCMIS

2011-04-28 Thread Jonathan Lee
Hi Florian, I am using BASIC authentication right now and the file size is only 81 bytes. Its a text file with some text in it. I see it in the HttpUtils that it will perform gunzip and base64 if the response header C*ontent-Encoding* is *gzip *and Content-Transfer-Encoding is *base64* * * Howeve

Re: SharePoint Base64 decoding error in OpenCMIS

2011-04-28 Thread Florian Müller
Hi Jonathan, Are you using NTLM? How big are your documents? We have seen issues with NTLM and documents around 120kb and bigger. The stream is closed on the server side before the content is completely read and leaves you with invalid Base64. The only solution I'm aware of is to avoid NTLM and