Hello,
I would like to create from a file, byte arrays to save it in a database. Also I'd like to have an inverse function to recreate the file from an array of bytes. How do I do this? I have this method but they only work on the file which is less than 64k.
Code:
Public void tanle (byte[] table, String ex) throws java.io.IOException {
try {
java.io.FileWriter flwr = new java.io.FileWriter(flwric);
flwror (int i = 0; I <array.length; I + +) {
flwr.write((int)board[i]);
}
flwr.close();
}
catch(IOException e){
System.out.System.out.println(e +"Error reading flwrile");
}
}
Bookmarks