I have the problem of wanting to save an image in the firebase database, I only found on the internet code to save the name of the image and then show it locally, but in my case the page will be hosted on the internet.
$scope.load = function(value) {
$scope.frmData.imagen = value.value.split("\")[2];
console.log(value);
console.log($scope.frmData.imagen);
};
This is the code that I have, but only saves the name of the imgane, I would like to save the image as such.
html code;
<input type="file" class="formElement imagencomida" name="imagen" id="imagen" ng-model="frmData.imagen" ng-show="imagen" onchange="angular.element(this).scope().load(this);loadFile(event)" >
You will see I need to save the image in firebase.