Alterando a propriedade MaxArrayLength no objeto XmlDictionaryReaderQuotas usado ao criar o leitor XML

Estou recebendo a seguinte exceção ao enviar (ou receber) uma matriz de bytes para um serviço C #.

<code>There was an error deserializing the object of type System.Byte[]. 
The maximum array length quota (16384) has been exceeded while reading XML data. 
This quota may be increased by changing the MaxArrayLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. 
Line 6, position 34838.'.  
Please see InnerException for more details
</code>

Para o que eu posso entender, o XmlDictionaryreader é criado automaticamente pelo webservice.

Então, como posso alterar a propriedade "MaxArrayLength"?

Este é o código de implementação:

<code>    public string addFile(string sharePointServer, string documentLibrary, 
                          byte[] content, string fileName) 
    {
        try
        {
            SPWeb spWeb = new SPSite(sharePointServer).OpenWeb();
            SPFolder spFolder = spWeb.GetFolder(documentLibrary);
            SPFileCollection spFileCollection = spFolder.Files;
            SPFile spFile = spFileCollection.Add(fileName, content, true);
            return spFile.TimeCreated.ToLongDateString() + "::" + spFile.Title;
        } 
            catch (Exception ex) 
        {
            throw ex;
        }
    }
</code>

Arquivos <16kb são enviados.

Arquivos> 16kb não são.

Arquivos> 10mb são baixados sem problema.

Onde esta propriedade é configurada?

questionAnswers(2)

yourAnswerToTheQuestion