I am getting this error from the logcat
org.apache.http.NoHttpResponseException: The target server failed to respond.
What might be the reason?
My download code is as below.
HttpClient httpclient = new DefaultHttpClient();
HttpResponse response = (HttpResponse)httpclient.execute(httpRequest);
HttpEntity entity = response.getEntity();
BufferedHttpEntity bufHttpEntity = new BufferedHttpEntity(entity);
InputStream instream = bufHttpEntity.getContent();
bmImg = BitmapFactory.decodeStream(instream);
call following methods and pass in URL .
public Bitmap DownloadFromUrl(String imageURL) { //this is the downloader method