i make WCF service on server side to return binary (bytes) of file.. i just can return binary of txt file,otherwise it's say "The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element."
here my code
maxReceivedMessageSize="2147483647"
maxBufferSize="2147483647"
maxBufferPoolSize="2147483647"
transferMode="Buffered"
messageEncoding="Text"
textEncoding="utf-8"
bypassProxyOnLocal="false"
useDefaultWebProxy="true" >
maxArrayLength="2147483647"
maxStringContentLength="2147483647"
maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647"/>
can you give me solution?
i need your help..thanks before :)
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Pradeep ShetRank #595 · 4K reputationPosted Aug 13, 2014, 1:30 AM EDT
Hi,
While adding service reference at client side. You may have not used the binding configuration basicHttp in webconfig. Please check it. It will solve your problem.
Please mark it answered if it helped you
Khan Abrar AhmedRank #778 · 3K reputationPosted Aug 13, 2014, 3:01 AM EDT
and if you hosted the service on IIS then change in IIS application host file to add below tag on your virtual directory