prova ad utilizzare il FileInputStream e il FileOutputStream, può darsi che siano più performanti..