Roku Developer Program

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

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
Level 10

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

That saves some bytes there.
0 Kudos
Community Streaming Expert

Re: data in form of GZIP from server

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

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.