static public byte[] getUrlBytes(URL url) {
        try {
            InputStream in = url.openStream();
            BufferedInputStream bufIn = new BufferedInputStream(in);
            try {
                ByteArrayOutputStream bos = new ByteArrayOutputStream();
                byte[] b = new byte[100];
                for (;;) {
                    int len = bufIn.read(b);
                    if (len == -1) {
                        break;
                    } else {
                        bos.write(b, 0, len);
                    }
                }
                byte[] data = bos.toByteArray();
                bos.close();
                return data;
            } catch (Exception ex) {
                LOG.info(" I/O Error - " + ex.getMessage());
            }
        } catch (MalformedURLException mue) {
            LOG.info("Invalid URL: " + url.toString());
        } catch (IOException ioe) {
            LOG.info("I/O Error - " + ioe.getMessage());
        }
        return null;
    }