util_construct_data_uri


Description:


[ Version ( since = "3.60" ) ]
public string util_construct_data_uri (string? mime_type, string? charset, bool is_base64, string data)

Constructs a "data:" URI (of form "data:mime type;base64encoded_data").

The mime_type neither the charset cannot contain ',' nor ';',

Parameters:

mime_type

optional MIME type to use, or null

charset

optional charset to use, or null

is_base64

true, when the data is base64 encoded

data

actual data

Returns:

a newly allocated "data:" URI constructed from the provided arguments. Free it with g_free, when no longer needed.


Namespace: E