/** * return the length of a file defined by a url. * * @param dataUrl * @return * @throws IOException */ public static long length(URL url) throws IOException { HTTPResponse http = HTTPEngine.head(url, null, null, -1, HTTPEngine.MAX_REDIRECT, null, "Lucee", null, null); return http.getContentLength(); }