Fixed image uploading problem. Firstly, it is important that the bytes of the image file are read binary. Thus, the Content-Length header matches against the sent bytes.