public static async Task <string> GetPreviewUrlAsync(this IBrowserFile file, int size, CancellationToken cancellationToken = default)
        {
            var buffer = await file.GetResizedImageAsync(size, cancellationToken);

            return($"data:image/jpeg;base64,{Convert.ToBase64String(buffer)}");
        }