Reading binary file using numpy in Streamlit

Hello @serdar_bay, you might try creating a NamedTemporaryFile from the returned value of the file_uploader, and passing the filename from that to np.fromfile instead of passing bin_file itself. You can see this post for an example.

1 Like