Add method for getting raw file data from a file object