String imagePath = this.getClass().getResource("/files/images.jpg").getPath(); driver.pushFile("/data/local/tmp/image.jpg", new File(imagePath));