Answer the question
In order to leave comments, you need to log in
How to decode Base64 in C#?
I send a string of Base64 format by Ajax to the server. It comes there in the format {image=data%3aimage%2fpng%3bbase64%2ciVBOR(There are a lot of characters here)kSuQmCC}
Standard function Convert.FromBase64String(s); can't understand this line. What needs to be cut/changed in the line above so that it can be decoded?
Answer the question
In order to leave comments, you need to log in
I cut out the extra characters at the beginning of the line and it all worked.
It's not exactly Base64 read it . You need to use for example this way
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question