Question: I have many table in my database it contain many key relation. i need to list out the table and its corresponding key name and the relationship table.

Answer: 
This should get you to your answer: [How can I convert bits to bytes?](https://stackoverflow.com/questions/719502/how-can-i-convert-bits-to-bytes)

You could just convert your string into an array like that article has, and from there use the same logic to perform the conversion.
You can go any of below,

```
        byte []bytes = System.Text.Encoding.UTF8.GetBytes("Hi");
        string str = System.Text.Encoding.UTF8.GetString(bytes);

        byte []bytesNew = System.Convert.FromBase64String ("Hello!");
        string strNew = System.Convert.ToBase64String(bytesNew);

```