I'm writing a web service in VB.Net 2005. It uploads some data from the
client to the server. One such function uploads image data as a byte array
parammetter. It works ok for small images. And fails instantly in the IDE
(with both server and client projects local in the same solution) for a 3MB
image in that byte array. The underlynning error message is: "The underlying
connection was closed: An unexpected error occurred on a receive. "
Now obviously there is some kind of limitation and I should stream it in
chunks. However before I do this I want to know exactly what kind of
limitations there are?
What are the optimal chunks sizes for Web Service?
So far I haven't found anything useful on MSDN for this. Anyone have any
suggestions?