Can I upload using DATA URI (BASE64)?

In addition to being able to upload from a local path or a remote URL, Cloudinary also supports uploading your assets (images, videos, documents, etc.) using the Base64 DATA URI scheme as explained here.

Such an upload call will look something like this (Rails):


For example, the following command:


Will result in uploading the following PNG image: 

If one prefers to generate the HTTP request on their own, note that the DATA URI must be first url-escaped, for example (using the same image from above):


For information regarding client-side BASE64 uploading, please visit the following link:

UPDATE: Uploading using Base64 representation is limited to file-size of 60MB.

Have more questions? Submit a request


Powered by Zendesk