Skip to content

ST_Read in @duckdb/duckdb-wasm with user-uploaded Files #275

Closed Answered by carlopi
parkerziegler asked this question in Q&A
Discussion options

You must be logged in to vote

I think you should use BROWSER_FSACCESS instead of BROWSER_FILEREADER.

BROWSER_FILEREADER expect basically a blob as input, that can also work for files of limited files if you do the conversion to Uint8Array yourself and then pass that to registerFileHandle.

If you manage with BROWSER_FSACCESS great, otherwise I will later set up an example of this. This feature is used by https://shell.duckdb.org via .open instruction, but following that code is probably a bit too detailed / involved, and this qualify as an example that should be present in the duckdb-wasm readme somehow.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by parkerziegler
Comment options

You must be logged in to vote
1 reply
@carlopi
Comment options

carlopi Mar 6, 2024
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants