Can you please specify what data filePath attributes holds? Is it media URL? I am getting exception when using above code.final FileInputStream file=new FileInputStream(excel); I am getting FileNotFoundException . Could you please help me with this ...