Guest User

Untitled

a guest
Oct 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #appengine python
  2. values = [1,2,3,4]
  3. values = array('f',values)
  4. response.out.write(values.tostring())
  5.  
  6. //JS loading
  7. var xhr = new XMLHttpRequest();
  8. xhr.open('GET', '/path/to/file', true);
  9. xhr.responseType = 'arraybuffer';
  10.  
  11. xhr.onload = function(e) {
  12. var binaryArray = new Float32Array(this.response);
  13. };
  14. xhr.send();
Add Comment
Please, Sign In to add comment