0

Load binary data

Is there a way to load binary data in execute section?
For example:
CODE
var url = 'http://farm3.static.flickr.com/2504/3900303990_32813c6c92_o.jpg';

var myRequest = y.rest(url).accept('image/jpeg');
var req = myRequest.get();

y.log(req.status);
y.log(req.headers);

var data = req.response;
y.log(data);
y.log(data.length);

But I get error:
<url error="Unable to parse data using default charset utf-8" execution-time="23" proxy="DEFAULT"><![CDATA[http://farm3.static.flickr.com/2504/3900303990_32813c6c92_o.jpg]]></url>

by
0 Replies

Recent Posts

in YQL