There is a web service where I upload files one by one and it proccess them somehow and returns me a result. There is a weird thing about it, however. If a file is big, it causes an error. If it's not so big, then everything is ok.
My guess to solve this problem is try to upload small chuncks of a file until it's uploaded completely instead of uploading a whole file.
The service uses https connection.
How do I do that in Python: how do I read a file and send read peaces to a server? And how do I read a result: peace sent - read a result or peaces sent - read a whole result?