I am trying to send an image file to the PHP server from the device. The code work fine if the file size is less than 2048 bytes but if I try to send the file larger than that, It dont send back any response which otherwise is HTTP_OK.

Is there any way that we can allow the server to accept files larger than that...

Also, the same code is working fine if I send the file to my localhost php server. and also I am able to get the response if I mention the out.length lesser than 2048 on the remote server but in that case the file is not 100% transferred.