WCF service to send large binaries to server
I need to upload large (100 meg max) binairies to server using WCF. I followed instructions fro开发者_开发知识库m this: http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/fileuploadsilverlightwcf07142009104020AM/fileuploadsilverlightwcf.aspx
it workds for anything less than 50K. going above that I get 415 errors. any idea?
is there a max POST size limit on your server?
You may want to try setting maxReceivedMessageSize and maxBufferSize to int.MAX and upping the value of maxItemsInObjectGraph.
http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c85f3ed2-0b55-4375-af79-5926b6cc527c
Try this on your binding configuration:
<binding name="MyWindowsAuthenticationBinding" closeTimeout="05:00:00" openTimeout="05:00:00" receiveTimeout="05:00:00" sendTimeout="05:00:00" maxBufferSize="2000000000" maxBufferPoolSize="2000000000" maxReceivedMessageSize="2000000000" messageEncoding="Mtom" transferMode="Streamed">
<readerQuotas maxDepth="2000000000" maxStringContentLength="2000000000" maxArrayLength="2000000000" maxBytesPerRead="2000000000" maxNameTableCharCount="2000000000" />
精彩评论