Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

download blob typescript

public downloadBlob(fileName: string, blob: Blob): void {
  if (window.navigator.msSaveOrOpenBlob) {
    window.navigator.msSaveBlob(blob, fileName);
  } else {
    const anchor = window.document.createElement('a');
    anchor.href = window.URL.createObjectURL(blob);
    anchor.download = fileName;
    document.body.appendChild(anchor);
    anchor.click();
    document.body.removeChild(anchor);
    window.URL.revokeObjectURL(anchor.href);
  }
}
Comment

PREVIOUS NEXT
Code Example
Typescript :: get number of digits in an integer python without converting to string 
Typescript :: is missing in props validation typescript 
Typescript :: excel check if value exists in range 
Typescript :: typescript dynamic interface 
Typescript :: json in typescript 
Typescript :: nuxtServerInit nuxt 3 
Typescript :: mui styled typescript 
Typescript :: script editor google sheets create new sheet 
Typescript :: typescript react switch case component 
Typescript :: angular api rest 
Typescript :: minuts bwtewwn two date laravel 
Typescript :: how to delete particular user in angular 8 
Typescript :: serenity-is change button text 
Typescript :: check if all array elements match closure swift 
Typescript :: can i use different flutter versions for differnt progjects ? 
Typescript :: open url with pacage.json 
Typescript :: elastice search requirements in ubunt 
Typescript :: detect incomming bullet from socket 
Typescript :: subplots in for loop python (no dynamic) 
Typescript :: permalink of pending posts not working 
Typescript :: typescript ! 
Typescript :: how did mississauga get its name 
Typescript :: They Take Their Medication Then The Device Owner Lets Them Press The Button | The Problem We Are Solving Is Kids Not Taking Their Medication Which Turns To Great Health Benefits In The Young Generation 
Typescript :: how to execute more commands scripts package.json 
Typescript :: ag-grid cell renderer dropdown example 
Typescript :: “There does not exist a woman who has taken a flight on every airline inthe world.” 
Typescript :: choose random elements from vector without repetition and adding to another vector c++ 
Typescript :: django query to return User whose first name starts with j or last name starts with h 
Typescript :: python list comports on windows 
Typescript :: minikube arguments --cpus 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =