views:

874

answers:

2

i am sending byte[] (image) through wcf to silverlight, and from silverlight to wcf, everything works well as long as the byte[] (image) is less than 20KB, but when it's bigger, it doesn't work when i try to save the image uploaded in silverlight and send it to wcf to save it in the DB

i receive: The remote server returned an error: NotFound" and debugger doesn't reach the save method in the wcf service

+2  A: 

Hey,

Check the binding configuration. It has properties for getting/setting max receive data bytes: check "maxReceivedMessageSize" property (representing the size in bytes).

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

AlexDrenea
+1  A: 

If you are serialzing objects over the wire, also make sure you maxItemsInObjectGraph is large enough. I ran into this problem thinking it was bytes, but actually turned out to be the # of items in my List<>.

Halirob