decodeBase64(crntImage); File outF = new File(c:/decode/abc. SVG to Base64 Converter uses JavaScript logic to generate base64 string. TypeScript version const file2Base64 = (file:File):Promise => { Are There Better Ways To, Importing Components in React From Other Files: Step-by-Step, Reading and Writing Files With TypeScript, 3 Things They Dont Tell You About Angular Universal, Using TemplateRef and ngTemplateOutlet To Pass Templates, Better Constructor Overloading In Typescript/Angular. Why did the Soviets not shoot down US spy satellites during the Cold War? If necessary, select the desired output format. You will get the download link as soon as the file is converted. The term Base64 originates from a specific MIME content transfer encoding.