W
W
wkololo_4ever2014-05-23 17:19:18
JavaScript
wkololo_4ever, 2014-05-23 17:19:18

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

3 answer(s)
W
wkololo_4ever, 2014-06-06
@wkololo_4ever

I cut out the extra characters at the beginning of the line and it all worked.

V
Vyacheslav Zolotov, 2014-05-23
@SZolotov

It's not exactly Base64 read it . You need to use for example this way

A
Alexander Borisovich, 2014-05-23
@Alexufo

urldecode in php analogue

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question