I have a csv file (Blob type: Block blob) in my Storage Blob container (v2).
I am wondering how can I be able to fetch the file into my Angular app?
Currently I tried to download the csv, move it into assets folder and fetch from there using HttpClient get() method and successfully read the data:
this.http.get('assets/my-organization.csv', {responseType: 'text'})
.subscribe(data => {
let csvToRowArray = data.split("\n");
for (let index = 1; index <csvToRowArray.length - 1; index++) {
let row = csvToRowArray[index].split(";");
this.orgArray.push(new Organizatio(row[0],row[1], row[2], row[3]));
}
console.log(this.orgArray);
})
Now I would like to be able to fecth the data dynamically from Azure itself without the need to always manually download it everytime a new data generated. I tried simply renaming it into:
this.http.get('https://<my_azure_storage_url>/my-organization.csv', {responseType: 'text'})
This naturally won't work. So I wonder how can I get these data?
ResourceNotFound