What exactly are you trying to accomplish? In any case, to read any kind of a file into a byte array, do the following:
import java.io.BufferedInputStream;
import java.io.FileInputStream;
public class ReadFile {
public static void main(String[] args) throws Exception {
BufferedInputStream stream =
new BufferedInputStream(new FileInputStream("your_filename"));
byte[] bytes = new byte[stream.available()];
stream.read(bytes, 0, bytes.length);
}
}