I’m trying to swap some base64 images using schema, but am running into errors. Can anyone help troubleshoot?
So far, my app is working with pixlet serve (I can see the simulated display and control the images with dropdowns), but the command is also returning “Error in decode: illegal base64 data at input byte 4”. That error is causing pixlet render and pixlet push to fail.
def main(config): myimage = (config.get("[schema ID here]", "Default")) return render.Root( child = render.Image(src = base64.decode(myimage)) ) def get_schema(): location_options = [ schema.Option( display = "Option1", value = """[base64 stuff]"""
Does anyone know what I might be doing wrong, if base64 with schema is possible, or if there are better methods of doing what I’m trying to do?