Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. COnvert image to base64 with js
Forum Updated to NodeBB v4.3 + New Features

COnvert image to base64 with js

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 3 Posters 554 Views 1 Watching
  • 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.
  • A Offline
    A Offline
    alpha_coder
    wrote on last edited by
    #1

    Hi,
    kindly help to convert an image or image url to base64 using javascript. I m using qtquick in arcgis appstudio

    JonBJ 1 Reply Last reply
    0
    • A alpha_coder

      Hi,
      kindly help to convert an image or image url to base64 using javascript. I m using qtquick in arcgis appstudio

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by
      #2

      @alpha_coder
      Check to see if the environment where you are using JavaScript has a btoa() function to produce base64. If not, a sample implementation is given at e.g. https://stackoverflow.com/a/246813/489865

      1 Reply Last reply
      1
      • fcarneyF Offline
        fcarneyF Offline
        fcarney
        wrote on last edited by
        #3

        @alpha_coder said in COnvert image to base64 with js:

        base64 using javascript.

        Is this js in QML?

                Text {
                    width: 100
                    height: 20
                    text: Qt.btoa("Hello base64")
                }
        

        QML global functions.

        C++ is a perfectly valid school of magic.

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved