/ Published in: Java
Reads the contents of a url and returns the text in a byte array.
Expand |
Embed | Plain Text
byte[] byteReturn = null; try { inStream = theURL.openStream(); byteReturn = readStream(inStream); e.printStackTrace(); } finally { try { if (inStream != null) { inStream.close(); } e.printStackTrace(); } } return byteReturn; }
You need to login to post a comment.
