InputStream is = getClass().getResourceAsStream("license");
try {
byte b[] = new byte[1024];
int len = 0;
int temp = 0;
while ((temp=is.read()) != -1) {
b[len] = (byte)temp;
len++;
}
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} finally {
if (is != null) {
try {
is.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}