Category : file

So I’ve created a directive for resizing images. Basically it works – I’m getting the Base64 string that is resized image (I’m testing this using this page: https://codebeautify.org/base64-to-image-converter) Lets go to the code: changeEvent(imageResult: ImageResult) { const dataURL = imageResult.resized && imageResult.resized.dataURL ? imageResult.resized.dataURL : (imageResult.dataURL ? imageResult.dataURL : null); if (!dataURL) { return; } ..

Read more

I am trying to make web app more efficient, I have a static model, very simple: I have something like this in escense: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="es"> <head> <link rel="stylesheet" type="text/css" href="css/mycssfile.css" /> <script type="text/javascript" src="js/myjsfile.js"></script> </head> <body> <div class="header"> <!– Some static HTML code here –> </div> <div class="content"> <!– Non-static code –> ..

Read more

I am trying to convert a dom element to Blob, which I want to use later for sending the same as attachment(as pdf). The code for the same is as following: Dom element: <div id="dom-container"> Dom container </div> Code for dom to blob conversion: (in order to check the conversion, I am downloading as PDF) ..

Read more