changed data type for uploaded data to byte[]