We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
our uploaded file is a base64 encoded string, i think this is very popular nowadays, how to read that kind of files? with this module.
The text was updated successfully, but these errors were encountered:
Use node fromStream method with createReadStream
fromStream
createReadStream
const fs = require('fs') const csv = require('csvtojson') csv() .fromStream(fs.createReadStream('/path/to/file', { encoding: 'base64' })) .subscribe((json) => { console.log(json) }, (err) => { throw err }, () => { console.log('success') })
Sorry, something went wrong.
@jfoclpf Bro, title Is VERY specific. From base64 string, you passed a path file.
got it, though IMHO it is not a purpose of this module to do this type of conversions, anyway you can check this
https://stackoverflow.com/questions/48534404/create-readstream-from-base64-encoded-string-by-file
No branches or pull requests
our uploaded file is a base64 encoded string, i think this is very popular nowadays, how to read that kind of files? with this module.
The text was updated successfully, but these errors were encountered: