Hi,
i am opening an Http Connection to Download an image, i doing it as shown below. but when i call getResponseCode() , Exception Happens.
i am using S40 6th Edition SDK With Netbeans.
HttpConnection httpConn = null;
InputStream is = null;
httpConn = (HttpConnection)Connector.open(url);
httpConn.setRequestMethod(HttpConnection.GET);
if((httpConn.getResponseCode() == HttpConnection.HTTP_OK)){ // Exception Happens here
int length = (int)httpConn.getLength();
is = httpConn.openInputStream();
Thanks
@Rain

Reply With Quote

