Why are you using http call to get something which is local to your project? axios is for rest calls . you can simply import the file and use it
– Harmandeep Singh KalsiMay 24 '20 at 14:08
2
Those are the bytes of the image, but you are trying to visualise them as utf8 character, thus why you get those boxes. You would get the same result when trying to open an image in notepad++.
– NicolasMay 24 '20 at 14:08
@gdsdasgga , check this https://stackoverflow.com/questions/41846669/download-an-image-using-axios-and-convert-it-to-base64
– Harmandeep Singh KalsiMay 24 '20 at 14:14
2
Does this answer your question? [Download an image using Axios and convert it to base64](https://stackoverflow.com/questions/41846669/download-an-image-using-axios-and-convert-it-to-base64)
– MartinMay 24 '20 at 14:30