Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- byte[] bytes = new byte[5000];
- DataInputStream dis = new DataInputStream(new FileInputStream(file));
- int read = 0;
- int numRead = 0;
- while (read < bytes.length && (numRead=dis.read(bytes, read, bytes.length-read)) >= 0) {
- read = read + numRead;
- }
Add Comment
Please, Sign In to add comment