covert object from Uint8Array
covert object from file