read file bytes to shmem object