Convert Cloudinary image url to base64

Comments

5 comments

  • Avatar
    Francis Tagbo

    Hi Trang,

    Yes, the Cloudinary SDK includes utilities to decode and encode Base64.
    Here is an example class in Java SDK.

    Regards,
    Francis

    1
    Comment actions Permalink
  • Avatar
    Trang

    I only know Javascript and I notice that the Node.js SDK also includes a helper for encoding Base64.

    How am I supposed to call the helper above? I don't see it mentioned anywhere in the documentation here.

     

     

    0
    Comment actions Permalink
  • Avatar
    Mo Ip

    Hi Trang,

    You can use the code of base64Encode from Node.js SDK or check out details from: 

    https://www.tutorialspoint.com/converting-images-to-a-base64-data-url-using-javascript

    Regards,

    Mo

    0
    Comment actions Permalink
  • Avatar
    Trang

    Hi Mo,

    Thanks for the link. That seems like a good approach.

    0
    Comment actions Permalink
  • Avatar
    Mo Ip

    Hi Trang,

    Glad to hear.

    Regards,

    Mo

    0
    Comment actions Permalink

Please sign in to leave a comment.