plzz help in transfer of data read from file
hi guys i have made a dialog box to select a file and m able to read contents from it
now i want to pass these contents to another function in the form of bytes
because i want to encrypt it
but i am not able 2 pass it
can someone help plzzztry
{
File f =new File(filename);
FileInputStream fis =new FileInputStream(f);
BufferedInputStream bis =new BufferedInputStream(fis);
BufferedReader dis =new BufferedReader(new InputStreamReader(bis));
while ( (record=dis.readLine()) !=null )
{
System.out.println(record);
}
this is how i am able to read the contents of file
now how i pass the contents of file to another function(in form of bytes preferably or string).

