0

Can you acquire raw image data without drawing to a canvas in javascript? Can you give an example of this in practice? Thanks!

michael
  • 91
  • 1
  • 2
  • 12

1 Answers1

0

You could acquire that data using an ajax call to that address. Something like

$.ajax($self.attr("src"), {
    complete: function (jqxhr) {
        $self.text(jqxhr.responseText);
        }
});

See this jsFiddle I've prepared that demonstrates that method.

EZLearner
  • 1,614
  • 16
  • 25