Pass a file-like object to the loader. Open the data file using Flask's `open_resource` helper.