Hi, I want to download image from the path. This is my code:

String urlString = 
"http://www.hospimedica.com/images/stories/articles/article_images/_CC/20110328 
- DJB146.gif";
url = new URL(urlString.replaceAll(" ", "%20"));
bm = BitmapFactory.decodeStream(url.openConnection().getInputStream());

But it returns me null in bm. Any ideas how to make this code to work?


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to