I have txt files stored inside Firebase storage. and I am able to store the download URL of each of these txt files in my firestore database. but I am not able to use the data inside the txt files stored inside firebase storage.
Problem **: I want to directly **get data from the txt file stored in the storage and display it in my reactjs web application page.
As of now, I am not able to download the txt file by putting the url in an anchor tag and I dont know how to approach this problem as i want to download the file.
And also I am not able to get data directly form the txt file stored in storage so that I can display it in the web page. . I have already looked at the documentation but the demo there only shows how to display an image from storage by assigning download url to src attribute of img tag and not other file types like txt.
I tried to put download URL inside an anchor tag, but that wouldn't download the file. and to retrieve data inside the txt file stored in storage I Couldn't find a good approach
Expected result: I want to get the data inside txt file stored in storage to display in my web page in reactjs.
Output result: not able to access the data inside the txt file in storage for viewing in the webpage.
Thank you for your time