so I'm trying to concatenate the two or more base64 URL string generated from my camera (using the cordova-plugin-camera
). And I'm trying to generate it into one base64 URL string to convert it into a one image only.
I tried to concatenate it manually by doing this.
var compilation = ["data:image/jpeg;base64,"];
for(var x = 0; x < $scope.imageList.length; x++)
compilation[0] = compilation[0] + $scope.imageList[x];
but that thing doesn't work. Any ideas how can I make this possible?
References:
Join two Base64 strings and then decode them
Thank you!