-
Hello all I have the following SVG string in a database and like to show the svg on screen:
my Code:
strSVG is the above string from database I am getting an exception:
What am I doing wrong, can anyone help me, many thanks Dietmar |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Decode string first |
Beta Was this translation helpful? Give feedback.
Many thanks. Not very sure how to do this, like this?
public static string DecodeBase64ToString(string valor) { byte[] myBase64ret = Convert.FromBase64String(valor); string myStr = System.Text.Encoding.UTF8.GetString(myBase64ret); return myStr; }