connection timed out when using upload widget

I have two applications , web and mobile,when i upload an image as a binary file from the web app it is saved correctly in the entity, the problem is that I have a upload widget that the user can use to upload his profile picture using camera or selecting files from his gallery ,when i save the picture as binary data inside an entity i get an error saying that the connection has timed out.

Muhamed Akl wrote:

I have two applications , web and mobile,when i upload an image as a binary file from the web app it is saved correctly in the entity, the problem is that I have a upload widget that the user can use to upload his profile picture using camera or selecting files from his gallery ,when i save the picture as binary data inside an entity i get an error saying that the connection has timed out.

When i used the camera plugin and have a button that triggers the camera and save that picture everything goes correctly, but when i use the upload widget it gives error