Welcome!

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

Reply
New Developer
Posts: 48
Registered: ‎12-11-2008
My Device: Not Specified

"Problem for http connection"

Hi guys,

 

       HttpConnection httpConn = ( HttpConnection ) Connector.open ("http://www.viddler.com/thumbnail.action?token=b8fda424&size=1");

 

imageLength = (int)connectionLength;

 

ya , this is my coding ,here i got value for "image length=-1"  . and i cant able to get that image....

 

Let me know if u have any idea..............

New Developer
Posts: 14
Registered: ‎05-22-2008
My Device: Not Specified

Re: "Problem for http connection"

Are you getting a response code?  I'm assuming that's not all your code becuase you don't show where connectionLength is set.

 

 

Highlighted
New Developer
Posts: 26
Registered: ‎12-03-2008
My Device: Not Specified

Re: "Problem for http connection"

Make sure your MDS simulator is running. Without it, you can't make an HTTP connection.
BlackBerry/Mobile Enthusiast - http://www.riccomini.name