Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dmitskevich
Level 7

Reading archive (gz,zip) on Roku

Dear Roku Developers,

is it possible to read data from an archive? Some xml files, which I want to download from internet are not available as .xml but as .xml.gz (this probably was done to save space and network traffic). I can download such file to Roku using roUrlTransfer:AsyncGetToFile, but how to read files from it (from .gz archive)?
0 Kudos
2 Replies
dmitskevich
Level 7

Re: Reading archive (gz,zip) on Roku

In roku_sdk_v29\documents\ComponentReference.pdf is written that ifUrlTransfer has a method:

Boolean EnableEncodings(Boolean enable)
 Enable gzip encoding of transfers.

Will it do the trick?
0 Kudos
MrWalnut
Level 8

Re: Reading archive (gz,zip) on Roku

Is there a way to handle this issue yet? I was able to do the same thing with the help of JSZipUtils in JavaScript. When I do an AsyncGetRequest by rourltransfer to get the file and wait for the response, it simply prints out "PK???"

0 Kudos