locked
Posting large amounts of data RRS feed

  • Question

  • I am trying to send some pictures as a binary array through ADO.NET Data Services. It works fine for small pictures, but fails for larger pictures. I created the following int the web.config, but to no avail.

      <system.serviceModel>
        <services>
          <service behaviorConfiguration="SSServiceTypeBehaviors"
            name="SSService">
            <endpoint binding="webHttpBinding" bindingConfiguration="userHttp"
              contract="System.Data.Services.IRequestHandler"/>
          </service>
        </services>
        <behaviors>
          <serviceBehaviors>
            <behavior name="SSServiceTypeBehaviors">
              <serviceMetadata httpGetEnabled="true" />
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <bindings>
          <webHttpBinding>
            <binding name="userHttp">
              <readerQuotas maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" maxStringContentLength="2147483647" />
              <security mode="None" />
            </binding>
          </webHttpBinding>
        </bindings>
      </system.serviceModel>
    

    I tried Nikhil's Web Developer Helper and I get a status code 400 back and a response size of 0. When I double click the entry, I get a NullReferenceException from his tool.

    Any ideas?

    Wednesday, July 29, 2009 6:48 PM

Answers

All replies