I have a rails app on Heroku (cedar env). It has a page where I render the canvas data into an image using toDataURL() method. I\'m trying to upload the returned ba
If anyone cares: here is the coffescript version of the function given above!
convertToBlob = (base64) ->
binary = atob base64.split(',')[1]
array = []
for i in [0...binary.length]
array.push binary.charCodeAt i
new Blob [new Uint8Array array], {type: 'image/jpeg'}