Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dmitskevich
Visitor

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 2
dmitskevich
Visitor

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
Reel Rookie

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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.