n
message has been deleted
r
how did you transform base64? directly created the file? can you send me the code ?
for how are you converting base64 to image
n
You don't convert, you save the file with the file content being the base64 string that you would expect from a response / request. What I'm saying is, the data returned for PNG is correct base64 string but the .ICO is coming back as the "garbage" I'm seeing. I don't understand why and exploring if it's something additional I need to add to the headers to resolve it. BUT I was considering, what if I just base64 encode that "garbage" and use the encoded string as the file content. No point sharing the code it's literally taking the response body and setting that as the file content, exactly the same code for any file, based on the mime type. (which is not to do with the request it's related to handling the response)