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: 

data in form of GZIP from server

We are trying to Implement compression on server side for Large JSON.Is their any other way to fetch GZIP based request and get JSON from it.
0 Kudos
2 REPLIES 2
destruk
Streaming Star

Re: data in form of GZIP from server

Most servers I know of have gzip enabled by default.
What you might consider is using some kind of paging for your data - so you can make multiple transfers of the data you need, instead of using one large piece.
Also, if you have access to the JSON feed itself, you could lower the size by having the roku code dynamically alter/create the extra fields where possible - for alternate bitrate streams, filenames, etc.
Rather than having the JSON list a separate tag for hours, and a separate tag for minutes, if you can combine those, the filesize will be smaller, resulting in a faster transfer -- like rather than having
hours: 2
minutes: 16

if you had
minutes:136

That saves some bytes there.
0 Kudos
renojim
Community Streaming Expert

Re: data in form of GZIP from server

If you're using roURLtransfer, make sure you EnableEncodings.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
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.