'This resource is not a valid image' when trying to store an image from a base64 string.

Hi Xano-ers, I'm having trouble trying to store an image from a 3rd party API that comes through as a base64 string, and I'm not quite sure what I'm doing wrong.

Here's what I'm currently doing—

I first use the 'Create file resource' function with file name as 'newFile.png' and file data as a variable of the base64 string for the image

This step returns a funky string that looks like this.

After this step, I use the 'Create image from file' function using the returned value from the screenshot above. This is where I run into problems—I keep getting a 'This resource is not a valid image.' message from Xano.

Any idea what might be the problem?

Other
4 replies