Menu

#44 Add open() method that accepts InputStream

Unnassigned
wont-fix
nobody
None
1
2024-05-14
2020-12-20
No

Hi there,
I'm considering creating an integration for MS Access for Apache Drill. In order to do so, I'd need to modify Jackcess to have an open() method that accepts an InputStream (or Hadoop path) as input.
If you'd consider doing that (or explaining how) I'd really appreciate it.
Thanks!

Discussion

  • James Ahlborn

    James Ahlborn - 2021-01-09

    sorry, somehow i missed replying to this. an access db requires random access in order to read, so you can't read directly from an input stream. you would either need to read entirely into memory or copy it to a temp file on the file system before reading. i believe there are some utils in jackcess already to make it easier to do some of these things.

     
  • Charles Givre

    Charles Givre - 2021-01-09

    @jahlborn
    Thanks for your response. Reading the file into memory would work. Is there a code example of how best to do that? Thx!

     
  • James Ahlborn

    James Ahlborn - 2021-01-10

    you can use this class. you can see some example usage in the TestUtil class.

     
  • James Ahlborn

    James Ahlborn - 2024-05-14
    • status: open --> wont-fix
     

Log in to post a comment.

MongoDB Logo MongoDB