Convert any image file or URL to Base64

Options
Can I convert an image from a url to base64 via xano?

Comments

  • Michael Udinski
    Michael Udinski Administrator

    ADMIN

    Options
    Yes you should be able to use our base64 conversion filters to accomplish this:

    https://mrkr.io/s/6112c09190d7132b6be513fe/0
  • You have an example of how I could do this. I didn't understand what to code,

    I need him to return something like this.

    date: image / png; base64, iVBORw0KGgoAAAANSUhEUgAACcQAAAU2CAMAAACGV9dpAAAC9FBMVEX / WSJ / sTh4owC8oTj / 3KRXTDn //// tzJheUj0ReivHx8cRdip5kTgNXCFLVmlGUGISfSwSgC0QbidaZ31hb4cQcSiyWjsUiDAPaiYThS8VjzLw8PC / YT8QcykTgy7f398OYiNihQAOZCQUizHr6 + sRdCkPbCYNYCIPaCUUjTLueE7 / gVTgckrQakXW1tYPZyXtewD / 594OZiTTt4n6sDgPZiXCozjz0p3MpTjfqTfwrjfkxZPurTjEoTTEpDXiqzfmqziJmzPDnjPzrjimpqfVpzjFqTaKnjWIlDGJlzKapw7 rDSwmxtMgiz2lhzxhguHjS + / + TqTbrrTZOjjDEpjVMfyvRpjjhw5FPljPZqDjSpDRNiS DpgpNhS35niSYmTRKcycueyshgC20nTOpWz0xizDc57xsVDxpii6ZmZmdu0SnnjS90YCdWDwiizE hC2Hii5LeSmnozX0jhN5lDBrkjH7pCoebyeNqhX6 + + vn29 / O2ozWllzH9xGr9u1b8py4 / jzGGhy37l0Q8eiosbCWWkC9dlDJbhy63YUCmmzNofysfeCpRXHEcYyOVszKIkTB / VDtZfCru3b1qkADz48 / 2rDblrC69jUPrpDxWWmK4yG / TlzqYoDVvmABzXUB5jC / Q2Z2LdlaHjy +9vb/BqICsw12NVzw7bybR0dH0xn9smTOwqRd0ngCVlBKsfzmeiGZ7mzTt6ODn5+j12a+9clGohU9XZHm8qhz/2Jx4hSxwiQXLfVjEqyC7Mt7mt6ODn5+j12a+9clGohU9XZHm8qhz/2Jx4hSxwiQXLfVjEqyC7Mf7mtln7mztlfm7sfvjEqyC7Dhm7mtlm7slnHnE
  • For example if I want to encode base64 this image below. How should I do?

    https://cdn.pixabay.com/photo/2021/08/06/18/51/lake-6526995_960_720.jpg
  • Michael Udinski
    Michael Udinski Administrator

    ADMIN

    Options
    I see now, you wish to convert it to a base64 file. You will need to look for an API or microservice to do this currently. File conversion like this is not currently supported in Xano. 
  • Maxence Pautre
    Options
    Hi  I have a similar problem explained here, still no evolution on this side in Xano ?