get file resource