Currently developping an application where I must send a picture every X seconds to my server and the server will upload it to my FTP. To not make the picture heavy, its format is JPEG and my last image was 135Ko, which is 135000 bytes.
Usually I send packets of max 8192 bytes, but I need this picture sending mechanism in my application, so I'm here to ask you guys what would be the best way to send those 135000 bytes to my server? A fast way too.
- All at once?
- Slice it, 8192 bytes a piece ?
- Other method that I miss?
EDIT : I use TCP
Thanks for your time.