Replace the deprecated build(File) method with the build(String, InputStream)