While working on a React App, I have to add a download button for some files. Type of file can be any, from .jpeg, .pdf. to xls., .docx etc. My response from the download API looks like this:
So, i get the name(Naziv), extension and the base64 data. For what I know, the dataURL should look like:
data:[<mediatype>][;base64],<data>
And I only have the data part of it. Is it possible to decode the data based on the data and extension and make a valid file out of it? If so, how?