|
the program didnt enter into the while loops, that was because of the available method, probably the two process didnt sync... anyway i solved in this way :
int length;
byte[] buffer = new byte[4096];
while((length = fis.read(buffer)) != -1){
out.write(buffer, 0, length);
}
and now it works, thanks anyway
|