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: 231
Registered: ‎07-09-2009
My Device: Not Specified

Reduce getResponseCode() time

Hi Everybody,

                         In my application i have used http connection for POSTing images to server its working fine but it took more time to read the response from server ( Using getResponseCode() )..


so the device getting stuck and freeze.. Is there any to reduce that time or some way to read the response..


Please any one help me for this..




Posts: 212
Registered: ‎07-18-2008
My Device: Storm 9550

Re: Reduce getResponseCode() time

Actually what happens is when you call getResponseCode() it will send all your data. it's like a flush, before no data will be sent. But I do not know a better way to flush smaller steps with HttpConnection Smiley Sad

If your problem was solved, please mark answer as "Accepted solution"
If your want to thank, click the "kudo" symbol
visit me: http://mobilejavadevelopment.blogspot.com/
visit the Berlin BlackBerry Developer Group: http://berlinblackberrydevelopers.blogspot.com/