Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 57
Registered: ‎05-25-2009
My Device: Not Specified

response code 400 in verizon network

Hi, I use a HttpConnection to request a file of size 5mb in verizon network, and I fetch it by using range request in the headeer to get the file by chunks. the chunksize is 256*1024, but every  time I fetch the 20th chunk, the responsecode 400 is returned. Is there because of the file size limit of verizon ? if it is the case, how could I get  around? Thanks.


I use code like 


while (not stoped) {


   open HttpConnection;

   get response code;

   i f (response code is not ok)


   make an inputstream from the connection;

  read the data

  close the inputstream;

   close the connection;




Thanks for the help.