I\'m trying to get a image from particular URL but it throwsFileNotFoundException. If I try to open the url from my browser, i can see the images. Please help.
FileNotFoundException
String fileURL = "http://sposter.smartag.my/images/KFC_Voucher.jpg"; String FILENAME = "caldophilus.jpg"; URL u = new URL(fileURL); HttpURLConnection c = (HttpURLConnection) u.openConnection(); c.setRequestMethod("GET"); //c.setDoOutput(true); =========== remove this; c.connect();