frohzinn's picture
download
raw
402 Bytes
/**
* Creates a base64 data URL from MIME type and base64-encoded data.
*
* @param mimeType - The MIME type (e.g., 'image/png', 'audio/mp3')
* @param base64Data - The base64-encoded data
* @returns A data URL string in format 'data:{mimeType};base64,{data}'
*/
export function createBase64DataUrl(mimeType: string, base64Data: string): string {
return `data:${mimeType};base64,${base64Data}`;
}

Xet Storage Details

Size:
402 Bytes
·
Xet hash:
5552dbaf2a4415bcc5b41e919eadb7df9a3270cbb8f363e75e7bc80b7a654359

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.