File

projects/m2-core/src/lib/core/utils/file.utils.ts

Index

Methods

Methods

Static downloadFile
downloadFile(href: string, fileName?: string)
Parameters :
Name Type Optional
href string No
fileName string Yes
Returns : void
Static handleFileData
handleFileData(file: File, dataHandler: (base64file: string,fileName: string) => void)
Parameters :
Name Type Optional
file File No
dataHandler function No
Returns : void
Static readFileAsText
readFileAsText(blob: Blob)
Parameters :
Name Type Optional
blob Blob No
Returns : Observable<string>

results matching ""

    No results matching ""