Is there any way to check image exist in a particular location except the following code?This code is taking too much time.
static boolean isImage(String image_path){
InputStream input = null;
try{
URL url = new URL(image_path);
input = url.openStream();
return true;
}catch(Exception ex){
return false;
}
}