Help Center> Face Recognition Service> FAQ> API FAQs> How Do I Obtain the Base64 Code of an Image?

How Do I Obtain the Base64 Code of an Image?

  1. Open the Google Chrome browser and drag an image file to the browser. The image is displayed on the browser.
  2. Press F12, click Sources, and select the image file from the navigation tree on the left. The Base64 code of the image is displayed on the right, as shown in red frame 3 in the following figure.
  3. Double-click the Base64 code of the selected image and press Ctrl+C to copy the Base64 code. Do not right-click the image to copy it.
    Figure 1 Base64-encoded image