Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
Okay here's the story, i'm trying to send an image by converting it into a byte array and then sending the data to another host using UDP Client class, the problem is when i try to send the data the program shows an error saying that my array is larger than the buffer size used by the UDP class or something, any ideas?
Posted
Comments
Sergey Alexandrovich Kryukov 15-Feb-14 20:17pm    
Why UDP? What's the problem? What have you tried so far?
—SA
Member 10329164 15-Feb-14 23:34pm    
UDP is a protocol of sending data through a network, it's like the TCP but differs in the mechanism of working. I tried to send a picture using this protocol but there always an error that says that the UDP buffer can not hold the picture's data because the data is so huge.
Sergey Alexandrovich Kryukov 15-Feb-14 23:57pm    
Sorry, I wanted to ask "Why UDP?", mistyped it...
Yes, with UDP you cannot send it all in one package. You would need to send several packages and preserve their order somehow, to assemble them on the other end. That's why I asked "why?". Why bothering so much?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900