So, i'm trying to convert a large byte array into it's base64 encoded variant. But no matter what i try, it seems to freeze up my UI every time it runs. 

**This is what i've got currently:**

```
private async void TxtOutput_DragDrop(object sender, DragEventArgs e)
    {
        string outputText = String.Empty;

        if (e.Data.GetDataPresent(DataFormats.FileDrop))
        {

            string[] path = (string[])e.Data.GetData(DataFormats.FileDrop);
            byte[] fileBytes = File.ReadAllBytes(path[0]);
            txtOutput.Text = await Task.Run(() => {return Convert.ToBase64String(fileBytes);});
            _ = fileBytes;
            _ = path;

        }
    }

```

So, the line that freezes everything up is:

```
txtOutput.Text = await Task.Run(() => {return Convert.ToBase64String(fileBytes);});

```