🤖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?

    Scheduled Pinned Locked Moved M5GO
    3 Posts 2 Posters 7.8k Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          we11dan @robalstona
          last edited by

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

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post