Jump to content


Photo
- - - - -

ZLIB read file contents


  • Please log in to reply
3 replies to this topic

#1 sachsm

sachsm

    Extremely Active

  • Premium Member
  • 280 posts
  • Location:Sarasota FL / Huntsville AL

Posted 25 March 2011 - 03:07 PM

I was wondering if it is possible to open up a ZIP archive and read the contents (text file in my case) without creating a temp copy on the file system.

Thanks

#2 Mr Mike

Mr Mike

    Very Active

  • NI
  • 107 posts
  • Location:Austin, TX
  • Version:LabVIEW 2012
  • Since:2009

Posted 25 March 2011 - 05:58 PM

According to this thread, OpenG has zip reading and writing functions. You can find them here.
-- Mike

#3 rolfk

rolfk

    LabVIEW Aficionado

  • Premium Member
  • 2,045 posts
  • Location:Netherlands
  • Version:LabVIEW 2011
  • Since:1992

Posted 25 March 2011 - 08:38 PM

According to this thread, OpenG has zip reading and writing functions. You can find them here.


And the OpenG ZLIB library supports extracting files directly into memory strings rather than to a disk file! :rolleyes:

#4 sachsm

sachsm

    Extremely Active

  • Premium Member
  • 280 posts
  • Location:Sarasota FL / Huntsville AL

Posted 28 March 2011 - 02:33 PM

Yes, I have the OpenG ZLIB vi's and have a put together a way to extract a single file to disk and then read it.
It appears that there are vi's that look like they can setup a zlib file pointer but I cannot see how to read out the
data from the internal pointer. Any hints?


Ok, I must have an old version, I just looked at 2.5.1 and I do see the streaming vi's.

Thanks!