I have an app in a capacitor where I want to convert base64 to File object.
I am using code from this answer,
this works fine on the web but when I try to run in the actual android app it is returning a strange file object.
Data from bytes array shows in name instead of actual name, and name shows in localURL.
new File(['bytes'], 'test.png')
This works fine in web, but when I run it as native app
Result of this in web
File {name: "test.png", lastModified: 1623044932737....
Result of this in app
File {name: ['bytes'], lastModified: 1623044932737....
I tried switching parameters as well but still no luck.