Function gloo_file::futures::read_as_data_url
source · pub fn read_as_data_url(
blob: &Blob
) -> impl Future<Output = Result<String, FileReadError>>
Expand description
Returns the contents of blob
as a base64 encoded data:
URL.
Equivalent to async fn read_as_data_url(blob: &Blob) -> Result<String, FileReadError>
but
without borrowing the Blob
fore the lifetime of the future.