从wp7应用程序将大尺寸图像上传到azure时出错

时间:2013-04-24 06:12:43

标签: azure

我必须将任意大小的图片上传到azure云服务。在本地我已经在相应的配置文件中进行了更改并成功上传到服务,也是blob。 然后我发布了这项服务。现在,在将图像上传到此服务时出现错误。

“errorMessage”:“远程服务器返回错误:(400)错误请求。”这是我收到的错误消息。我已经在web.config服务中进行了这些更改,然后我就能成功上传。然后我发布了该服务。但是对于这个服务,我无法上传大尺寸(大于200 * 200)< / p>

 <system.web>
    <compilation debug="true" targetFramework="4.0" />
    <httpRuntime executionTimeout="4800" maxRequestLength="2147483647"/>
  </system.web>
  <system.serviceModel>
    <serviceHostingEnvironment  aspNetCompatibilityEnabled="true">
    </serviceHostingEnvironment>
    <standardEndpoints>
      <webHttpEndpoint>
        <!--<standardEndpoint name="" helpEnabled="true" crossDomainScriptAccessEnabled="true" faultExceptionEnabled="true" >
        </standardEndpoint>-->
        <standardEndpoint name="" maxReceivedMessageSize="2147483647" helpEnabled="true" crossDomainScriptAccessEnabled="true" faultExceptionEnabled="true" >
        </standardEndpoint>
      </webHttpEndpoint>
    </standardEndpoints>
    <bindings>
      <basicHttpBinding>
        <binding  transferMode="Streamed" closeTimeout="00:10:00" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" messageEncoding="Text">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" maxArrayLength="2147483647"/>
        </binding>
      </basicHttpBinding>
    </bindings>
  </system.serviceModel>
  <system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="2147483647"></requestLimits>
      </requestFiltering>
    </security>

0 个答案:

没有答案