I am having a problem trying to upload the database object using file_uploader and read the tables from the database. I am using SQLite dB for the same.
Below is the sample code:
file = st.file_uploader("Upload file ", type = “db”, encoding = ‘auto’)
conn = sqlite3.connect(file)
I am getting below error after running the above code:
expected str, bytes or os.PathLike object, not _io.BytesIO
Please help me on how to read the table in a db using the above method.