Created
May 11, 2016 12:23
-
-
Save satishSKY/def239374abf67b37a3b071997016a68 to your computer and use it in GitHub Desktop.
get image url to file (Blob object)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$http.get("app/assets/images/user_dummy.jpg",{responseType: 'arraybuffer'}).then(function (res) { | |
let file = new Blob([res.data], { type: 'image/jpg' }); | |
arr.push(file); | |
$scope.upload(arr); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment