copy file frame by frame works