Sending byte [] (more than 20 KB) via wcf in silverlight

I send byte [] (image) via wcf to silverlight, and from silverlight to wcf everything works fine as long as byte [] (image) is less than 20 KB, but when it is larger, it doesn’t work when I try to save the image loaded in silverlight , and send it to wcf to save it to the database

i receive: Remote server returned error: NotFound "and the debugger does not reach the save method in the wcf service

+4
source share
2 answers

Check the binding configuration. It has properties for receiving / setting the maximum bytes of data reception: check the property "maxReceivedMessageSize" (representing the size in bytes).

Edit: Here you can find information about all the binding configuration properties.

+2
source

If you serialize objects by wire, also make sure maxItemsInObjectGraph is large enough. I ran into this problem thinking it was bytes, but actually there were # elements in my list <>.

+1
source

Source: https://habr.com/ru/post/1286285/


All Articles