🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How can I encode images and text to Base64 with M5Flow?

    M5GO
    2
    3
    6.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      we11dan
      last edited by

      Hi, Dear.
      Please help me a little.
      How can I encode images and text to Base64 with M5Flow?
      Json etc. are prepared, but there is no Base64, so I don't know how to do it.

      1 Reply Last reply Reply Quote 0
      • R
        robalstona
        last edited by

        try to play and modify this code

        https://drive.google.com/file/d/1gUraVk-4tm7ZL8v7l6njna8YWjaPrOJA/view?usp=drivesdk

        you must interest a functions:

        binascii.a2b_base64() #ascii to bin
        binascii.b2a_base64() #bin to ascii

        W 1 Reply Last reply Reply Quote 0
        • W
          we11dan @robalstona
          last edited by

          @robalstona
          Thank you very much.
          I was able to execute it :)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post