Cambio de la propiedad MaxArrayLength en el objeto XmlDictionaryReaderQuotas utilizado al crear el lector XML

Obtengo la siguiente excepción al enviar (o recibir) una matriz de bytes a un servicio de 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>

Por lo que puedo entender, el servicio web crea automáticamente el lector XmlDictionary.

Entonces, ¿cómo puedo cambiar la propiedad "MaxArrayLength"?

Este es el código de implementación:

<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>

Archivos <16kb se cargan.

Archivos> 16kb no son.

Archivos> 10mb se descargan sin problema.

¿Dónde está configurada esa propiedad?

Respuestas a la pregunta(2)

Su respuesta a la pregunta