You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "fawazahmed0 (via GitHub)" <gi...@apache.org> on 2023/12/01 04:57:38 UTC
Re: [I] [JavaScript] How to write an arrow file in Node.JS from an IPC stream? [arrow]
fawazahmed0 commented on issue #35041:
URL: https://github.com/apache/arrow/issues/35041#issuecomment-1835460455
I am using these methods to read and write arrow file:
```js
const arrow = require('apache-arrow')
const fs = require('fs')
// Read arrow file
const table = arrow.tableFromIPC(fs.readFileSync('simple.arrow'))
// Write arrow file
fs.writeFileSync('simple.arrow', arrow.tableToIPC(table, 'file'))
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org