Home > Contents > Index >
Utilities.readByteURL
Reads the passed URL, and returns its bytes.
Syntax
public static final byte[] readByteURL(String url)Parameters
url
- The URL to read; for example, "
http://www.oracle.com/
".
Returns
The contents of the URL in a byte array, or null.
Example
The following example reads the URL
http://www.oracle.com
:
byte byteArray[] = Utilities.readByteURL("http://www.oracle.com/");
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.