Base64 string of PNG saving to WNFS

From @saqimtiaz in Discord:

Given a base64 encoded string representation of a PNG image, how would you recommended passing it to wnfs.add() to save the image to the file system?

Convert to a Blob? As is? I thought I had this working a couple of weeks ago but apparently not quite. Any input appreciated. (This is on webnative 0.24.1 working with the tiddlywiki-on-fission repository)

I did a little searching and wasn’t sure if base64 to blob was an issue. This is just me looking at SO :wink:

We changed some paths in 0.26 but this is the interface:

https://guide.fission.codes/developers/webnative/file-system-wnfs

And yes, you want to save a blob at a public file path with an extension eG myImage.png