I am implementing a Web page in JavaScript with Angular.JS & ionic. A page generator is one of the menu items that have a header field where the user can load a file. With the [Save] button, the result is sent to the relational database.
The page generator is saving the whole generated HTML object in the database like
<div class="hero-image" ivm-bg-axis="y" ivm-bg-drag="" ivm-bg-disabled="disabled" ng-style="imageOptions.style" ngf-background="ngModel" style="background-image: url("blob:null/3dfb1617-e1c8-45e8-9c0e-5f772129d2cb");"></div>
where the image is denoted with *style="background-image: url("blob:null/3dfb1617-e1c8-45e8-9c0e-5f772129d2cb");*. This is probably the unique key of the cached browser object, is it? If so, I want to save this image as a BLOB object, say, in another field of the same database record.
Question: How is it possible to get this image out of the browser? Is there a difference getting out this information between different browsers?
Thank you for your reply!
Edit: What I need in pseudo-code is something like this:
var cache = new BrowserCache();
var imageURL= cache.querySelector('url["blob:null/520cf0e0-fa19-438c-9db7-68af87f30f56"]');
var image = cache.getElement(imageURL);
// Convert image to appropriate format, if necessary
// Add image information to record to be sent to the server