Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9315515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T02:23:12+00:00 2026-06-19T02:23:12+00:00

I have a problem with large amount of data that I want to send

  • 0

I have a problem with large amount of data that I want to send to my WCF WebRole.
I get (413) too large data error. I quite new in Azure and WCF. I created a new service for sending images to WCF (LargeObject.svc) and tried to configure binding and endpoint for it.

This is the ServerSideCode:

 <system.serviceModel>
<bindings>
  <basicHttpBinding>
    <binding name="BasicHttpBinding_IImage" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647">
      <readerQuotas maxDepth="32"
               maxArrayLength="200000000"
               maxStringContentLength="200000000"/>
    </binding>
    <binding name="BasicHttpBinding_IRouteService"/>
  </basicHttpBinding>
  <customBinding>
    <binding name="CustomBinding_IRouteService">
      <binaryMessageEncoding />
      <httpTransport />
    </binding>
  </customBinding>
</bindings>
<client>
  <endpoint address="http://dev.virtualearth.net/webservices/v1/routeservice/routeservice.svc"
    binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IRouteService"
    contract="Route.IRouteService" name="BasicHttpBinding_IRouteService" />
  <endpoint address="http://dev.virtualearth.net/webservices/v1/routeservice/routeservice.svc/binaryHttp"
    binding="customBinding" bindingConfiguration="CustomBinding_IRouteService"
    contract="Route.IRouteService" name="CustomBinding_IRouteService" />
  <endpoint address="http://127.0.0.1:81/Implementation/LargeObject.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IImage"
            contract="ILargeObject" name="BasicHttpBinding_IImageSvc"/>
</client>
<behaviors>
  <serviceBehaviors>
    <behavior>
      <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
      <serviceMetadata httpGetEnabled="true"/>
      <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
      <serviceDebug includeExceptionDetailInFaults="false"/>
      <dataContractSerializer maxItemsInObjectGraph="1048576" />
    </behavior>
  </serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />

I have also a client Application in Windows Phone, code:

string endPointAddress = (Application.Current as TravelerMobile.App).ServerUriString("LargeObject.svc");

        LargeObjectClient client = new LargeObjectClient(new BasicHttpBinding(),
            new EndpointAddress(endPointAddress));


        MemoryStream stream = new MemoryStream();
        WriteableBitmap wb = new WriteableBitmap(image);
        wb.SaveJpeg(stream, image.PixelWidth, image.PixelHeight, 0, 100);
        byte[] byteImage = stream.ToArray();

        client.AddImageAsync(new LargeObject.AddImageRequest
        {
            Image = byteImage,
            Latitude = latitude,
            Longitude = longitude,
            UserId = Helpers.GetUserId()
        });

I also tried to configure BasicHttpBinding on client side by set maxRevieved and maxBuffered properties, but it still doesn’t work.

Any ideas?

p.s That’s a Windows Azure WCF project, so I have a default endpoint – but I don’t know how to set to it maxReceivedMessageSize .

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T02:23:13+00:00Added an answer on June 19, 2026 at 2:23 am

    I found the following link on stackoverflow who had the same problem, hope it works for you too, Azure WCF Webrole error: The remote server returned an unexpected response: (413) Request Entity Too Large

    as you made the maximum bytes to be transferred in the MaxReceivedMessageSize, I think you should do this to in the ReaderQuotas tag.

    another thing, you have to put in consideration, I don’t know what type of storage you are using but there are some storage that doesn’t allow you to upload more than 4MB for the file. for example for each blockblob the maximum size for a block is 4 MB and also for the pageblob the maximum size is 4 MB.

    you can also check this link on msdn, they had the same problem: http://social.msdn.microsoft.com/Forums/en-US/windowsazuredata/thread/39bfad06-97c0-4a98-b9fb-87879bab9414

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large amount of data that I am pulling from an xml
I need some help in solving this problem. We have a large amount of
I have a problem when try to use hashtable with large data. I have
I have a large project that executes without problem when not debugging (even when
i have large numbers of text files and i am in problem that i
So I have a large view in my production database that joins together data
I have a large amount of constantly incoming data (roughly 10,000 a minute, and
So...I have a large data set with a variable that has many categories. I
I have a UITabBar Application with two views that load large amounts of data
I'm building a Rails app that is probably going to have a large amount

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.