LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Storing into a string the content of a folder using zip compression

Solved!
Go to solution

francescofabbro_0-1657795372361.png

there must be a mistake somewhere ... if i run the vi  using the binary blocks... the original zip file is 12 Mb and the re-builded one is 1byte... I think I'm not reading the original zip file properly.

 

 

0 Kudos
Message 11 of 14
(681 Views)

The binary read function has a 'count' input that defaults to a count of 1 byte when you leave it unwired.  Instead, wire in the special value -1 to read the entire contents all at once. 

 

(See the function's online "Detailed Help" for more info.  I would recommend it as a good habit to also define the 'data type' input, even though it defaults to string which is what you happen to want this time.  This will provide greater clarity for anyone who uses or copies this code in the future, including your own future self.).

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 12 of 14
(675 Views)
Solution
Accepted by topic author francescofabbro

binary-zip.png

0 Kudos
Message 13 of 14
(669 Views)

thats' the key!

now it's working!

 

0 Kudos
Message 14 of 14
(659 Views)