byte array and file name now passed properly