Skip to content

Instantly share code, notes, and snippets.

View heeringa0's full-sized avatar

WH heeringa0

View GitHub Profile
@primaryobjects
primaryobjects / script.js
Created July 18, 2016 16:48
Posting binary WAV file from javascript to R shiny server.
// See also http://stackoverflow.com/a/27228544/2596404
// Blob is your binary data.
// blob = ...;
// Encode the data and post to server.
var reader = new FileReader();
reader.readAsDataURL(blob);
reader.onloadend = function() {
base64data = reader.result;