Как декодировать (преобразовать) строку data:image/png;base64 в файл?

Denis_Dobrii

Client
Регистрация
10.07.2019
Сообщения
14
Благодарностей
4
Баллы
3
Нужно декодировать строку base64 в файл, подскажите как это сделать с помощью C# видимо... Искал информацию так и не понял как это сделать т.к не знаю C# кто знает, подскажите код пожалуйста...

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAYAAADL1t\+KAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAACqlJREFUeJzt10GO7DYSQEFxUPe/Mr2djX/bVqLFeoo4AJEUWfXAdV3XvuAf2nv2uqy1Rtcz3z3T802b3u\+008\+Xtv89PQAAcJ\+gA0CAoANAgKADQICgA0CAoANAgKADQICgA0CAoANAgKADQICgA0CAoANAgKADQICgA0CAoANAgKADQICgA0CAoANAgKADQMC6rmtPLrj36HLctNYaXc/53uM8\+Dfcl7bp8/VCB4AAQQeAAEEHgABBB4AAQQeAAEEHgABBB4AAQQeAAEEHgABBB4AAQQeAAEEHgABBB4AAQQeAAEEHgABBB4AAQQeAAEEHgABBB4CAz9MD/GSt9fQIv2rv/fQIX236vjiPe04/j9PnO53/57N4oQNAgKADQICgA0CAoANAgKADQICgA0CAoANAgKADQICgA0CAoANAgKADQICgA0CAoANAgKADQICgA0CAoANAgKADQICgA0CAoANAwOfpAWDS3nt0vbXW6HpvM30ewN/zQgeAAEEHgABBB4AAQQeAAEEHgABBB4AAQQeAAEEHgABBB4AAQQeAAEEHgABBB4AAQQeAAEEHgABBB4AAQQeAAEEHgABBB4AAQQeAgM/TA/Bua63R9fbeo\+udbvr7vc3b7gttXugAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAEPB5eoCf7L2fHgHGnH6f11pPj/Crpvd7\+vlOe9t\+T\+eFDgABgg4AAYIOAAGCDgABgg4AAYIOAAGCDgABgg4AAYIOAAGCDgABgg4AAYIOAAGCDgABgg4AAYIOAAGCDgABgg4AAYIOAAGCDgABn\+kF11rTSwJ/Y/r3tvceXe9t853ubft9Gy90AAgQdAAIEHQACBB0AAgQdAAIEHQACBB0AAgQdAAIEHQACBB0AAgQdAAIEHQACBB0AAgQdAAIEHQACBB0AAgQdAAIEHQACBB0AAhYe\+/99BDAf7PWenqEP5r\+e5ner78/SrzQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASDgM73gWmt6ScL23qPrnX7/pvc7vd6008/jbU4/j9Pv87Tp8/BCB4AAQQeAAEEHgABBB4AAQQeAAEEHgABBB4AAQQeAAEEHgABBB4AAQQeAAEEHgABBB4AAQQeAAEEHgABBB4AAQQeAAEEHgABBB4CAdV3Xnlxw79HlrrXW6HrTpvd7utPPY5r7fJbTv9\+008/jbabv3/T5eqEDQICgA0CAoANAgKADQICgA0CAoANAgKADQICgA0CAoANAgKADQICgA0CAoANAgKADQICgA0CAoANAgKADQICgA0CAoANAgKADQMC6rms/PcQ323v28621Rtc7ne93z/T345633b\+3Of3/ygsdAAIEHQACBB0AAgQdAAIEHQACBB0AAgQdAAIEHQACBB0AAgQdAAIEHQACBB0AAgQdAAIEHQACBB0AAgQdAAIEHQACBB0AAgQdAAI\+0wvuvUfXW2uNrvc20\+cxbfp837bf07\+f\+e7x/3fP6ecxPZ8XOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAEfKYXXGuNrrf3Hl3vdNP7dR73TH\+/t3nbfXmb08/39N/v9Hxe6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQ8JlecO89ut5aa3S9t5k\+j7d52/d72\+/t9P\+r0\+eb9rbvNz2fFzoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABKzruvbkgnuPLne8tdbTI3y1t92Xaaffv\+nzPX2/b3P673f6vpx\+n73QASBA0AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASDg8/QAP1lrPT3CV9t7Pz3CH02f79v2O\+307zftbfs9/f6d/n9w\+vfzQgeAAEEHgABBB4AAQQeAAEEHgABBB4AAQQeAAEEHgABBB4AAQQeAAEEHgABBB4AAQQeAAEEHgABBB4AAQQeAAEEHgABBB4AAQQeAgHVd155ccO/R5a611uh63DN9vtOm78vb9jvN/wH/xun35fT5vNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIGDtvffTQ/Bea62nR/ij6Z/H9H5Pn\+9t3vZ36r7cM31fvNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIOCz1np6Br7I3vvpEb7a9Peb/v2ePt/bnH6\+pzt9v9Pn64UOAAGCDgABgg4AAYIOAAGCDgABgg4AAYIOAAGCDgABgg4AAYIOAAGCDgABgg4AAYIOAAGCDgABgg4AAYIOAAGCDgABgg4AAYIOAAGf6QX33tNLcsNa6\+kRfpX7d8/p92X6fN\+2X9q80AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEgQNABIEDQASBA0AEg4PP0AD9Zaz09wq/aez89Av/nbfdv2tvus/tyz/R9Of08pvfrhQ4AAYIOAAGCDgABgg4AAYIOAAGCDgABgg4AAYIOAAGCDgABgg4AAYIOAAGCDgABgg4AAYIOAAGCDgABgg4AAYIOAAGCDgABgg4AAZ\+nB4CT7b2fHuFXrbWeHuGPTp9v\+r6cvt9p0/s9/fc7vV8vdAAIEHQACBB0AAgQdAAIEHQACBB0AAgQdAAIEHQACBB0AAgQdAAIEHQACBB0AAgQdAAIEHQACBB0AAgQdAAIEHQACBB0AAgQdAAI\+Dw9AJxsrTW63t57dD3z3TM93\+n7PZ3zuMcLHQACBB0AAgQdAAIEHQACBB0AAgQdAAIEHQACBB0AAgQdAAIEHQACBB0AAgQdAAIEHQACBB0AAgQdAAIEHQACBB0AAgQdAAIEHQACPk8P8JO999Mj8EXWWqPrTd\+/t8037fTvx1nedr5e6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQsK7r2k8PwffY\+\+zrstZ6egS\+yPR9Pv3\+nb7f0\+c7nRc6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAT8BRGjXQZOqPOeAAAAAElFTkSuQmCC
 

Denis_Dobrii

Client
Регистрация
10.07.2019
Сообщения
14
Благодарностей
4
Баллы
3
Последнее редактирование:
  • Спасибо
Реакции: Live9up

Yuriy Zymlex

Moderator
Команда форума
Регистрация
24.10.2016
Сообщения
6 498
Благодарностей
3 364
Баллы
113

Scorpic

Client
Регистрация
17.08.2020
Сообщения
76
Благодарностей
19
Баллы
8
А как файл картинки, а лучше url с картинкой (чтобы не сохранять) закодировать в base64?
 

Evgeny76

Client
Регистрация
11.09.2015
Сообщения
192
Благодарностей
85
Баллы
28

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)