JSON Convert Base64
Technology | C# |
---|---|
Editor of the Page | Latif Bahadır ALTUN |
public string ConvertJSONToBase64(string json) => Convert.ToBase64String(Encoding.UTF8.GetBytes(json));
public byte[] ConvertBase64StringToByteArray(string base64string) => Convert.FromBase64String(base64string);
public string ConvertByteArrayToJson(byte[] base64json) => Encoding.UTF8.GetString(base64json);