/src/main/java/org/htmlunit/html/HtmlEmbed.java
final WebClient webclient = page.getCharset( ) ;
final WebClient webclient = page.getWebClient ( ) ;
HtmlEmbed(final String qualifiedName, final SgmlPage page, final Map<String, DomAttr> attributes) { super(qualifiedName, page, attributes); } public void saveAs(final File file) throws IOException { final HtmlPage page = (HtmlPage) getPage(); <extra_id_0> final URL url = page.getFullyQualifiedUrl(getAttributeDirect(SRC_ATTRIBUTE)); final WebRequest request = new WebRequest(url, page.getCharset(), page.getUrl()); final WebResponse webResponse = webclient.loadWebResponse(request); try (OutputStream fos = Files.newOutputStream(file.toPath()); InputStream content = webResponse.getContentAsStream()) { IOUtils.copy(content, fos);