Updated to use byte[] for file data.