400 Bad Request when trying to send large file to service using basichttp streaming.

Data too large for file format

More information:Following is the method signature: 

Hi,Could you please let me know the following things to narrow down this issue?

Thanks Allen for the reply, here is the info you requested. Small files  upto 1.5 GB work. Files larger than this size fail to transfer.If I go for self hosted service, the same code works  like a charm, its the problem only when service  is hosted in IIS.