try {
InputStream is = getFile(base, name);
if (is==null) return null;
byte[] buf = new byte[is.available()];
is.read(buf);
return buf;
} catch (IOException e) {
e.printStackTrace();
throw new ExceptionInInitializerError("Error loading "+name+":"+e.getMessage());