FileInputStream in = new FileInputStream(f);
byte[] buf = new byte[(int) f.length()];
in.read(buf);
in.close();
ByteArray content = new ByteArray(buf);
FileInfo fi = new FileInfo(false, f.getName(), (int) f.length(), new Date(f.lastModified()));
FileHolder fh = new FileHolder(fi, content);
return fh;
}