Max size limit for HttpResponse* post_res = post_req->send(body, size)

I am using #include "https_request.h" in my code and created request to upload image passing body and size of image.

HttpResponse* post_res = post_req->send(body, imgSize);

 

But My image size is->

char body[640*480];
unsigned long imgSize;

I have uploaded image successfully to dropbox but it is blank. I think it is not uploading full size of data.

Is it because of limit of size in post_req->send(body, size)?

I have gone through (https_request.h) where I found size if passed to nsapi_size_t.

and this typedef unsigned int nsapi_size_t.