gzip deflate issues when downloading from URL
    2 views (last 30 days)
  
       Show older comments
    
I'm using urlread2 from file exchange to download some data as I have to give an authorization header and few other things so it will return my data.
It works as expected but there is an option to return the data quicker by using compression, so I give it the ('Accept-Encoding','gzip, deflate') and the data returns in my matlab variable looking like this excerpt
K¦jEü¶siž¯¤X/Ð{*ÀUж|öRqsdÚqP½¹Lã^ÃõÒ&iÊ4»z£I Ò-ûÛ ûUã,vû{_kQN´ê.î:å¹YÁokbÑô&{tCRf³æÈ4Î^æ8ÜÅgµÒßu UjGv껢e#)2Ü1mëÁ×
I have no idea what to do with this now though, I tried this http://au.mathworks.com/matlabcentral/fileexchange/39526-byte-encoding-utilities/content/encoder/gzipdecode.m
And it transforms that above data into a bunch of numbers, not sure if its correct or not. But then if it is correct still not sure on what to do next.
If the above data is indeed compressed html data what do I do to get it into a useful form?
0 Comments
Answers (0)
See Also
Categories
				Find more on Audio and Video Data in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!