However, under IIS5 this value [in my code, the dwBytesRead variable. RV] does not always return the bytes written. It returns 0 and an error code of 10054 - even though the data gets written out to the Response stream just fine. I also remember in the past that I was told (I think by Wade Hilmo) that the result value from WriteClient() is unreliable and can indicate failure when the call actually worked - this was a big thing in IIS 4 and caused me to ignore any errors which hasn't been a problem.
This might be unrelated to WinCE though. But the similar error code triggers me.
In the end, my browser still does not display an image...
BTW - sorry for the ommision of CODE tags in my initial message.