Как сохранить изображение data:image/jpeg;base64, через GET?

TotKto

Client
Регистрация
12.07.2013
Сообщения
123
Благодарностей
12
Баллы
18
Добрый день, пример изображения:

http://pastebin.com/WqGtbQGK

Как сохранить такое через GET?
Или как переварить в удобный для GET формат?
Спасибо.
 

amyboose

Client
Регистрация
21.04.2016
Сообщения
2 312
Благодарностей
1 191
Баллы
113
Можно, но такие решения сходу не пишутся, так что если вам нужна скорость, пишите в пм, там все обсудим.
 

doc

Client
Регистрация
30.03.2012
Сообщения
8 684
Благодарностей
4 641
Баллы
113
C#:
string base64str = "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMTEhUTEhIVFRUVFxUXFxUXFxUVFxUXFxUXFxcXFxcYHSggGBolHRcVITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OGhAQGi0dHR0tLS0tLS0tLS0tLS0tLS0tLS0tLS4tLS0tLS0tLS0tLS0tLS4tLS0tLS0tLS0tLS0tLf/AABEIAOEA4QMBIgACEQEDEQH/xAAcAAACAgMBAQAAAAAAAAAAAAAEBQMGAAECBwj/xABIEAABAwIDBAYFBwoEBwEAAAABAAIDBBEFITESQVFxBhNhgaHBIjKRsdEHM1JicpLwFBUjQ4KissLh8UJEU9IkNEVUc6PDFv/EABkBAAMBAQEAAAAAAAAAAAAAAAECAwAEBf/EACoRAQEAAgIBAwQBAwUAAAAAAAABAhEDITEEEkETIlFhMnGRsUKBkqHw/9oADAMBAAIRAxEAPwBGxM6PDJXgOazLibC/tXeBYbt2e4A3Oy1p0Nhdzj2Ae0q5QQODQA8ZcGgNA4KFXyy0qLsLlbqw91iodkjUW5q6vgfxB7iEDUwg5Pb+Oe5BpkrjXLtr0wkwwHNpt2HMIKaie3dccRmlsPLE1JNsvaeBCu9G64XnYerp0aqNuK/A2KlnPlbjp21D4jUljCRrnb2Xuty1AbYu0JslOK1gdYg+j6uhvcnPuyGaXjw3f0Gd668imVjeraXOAJFsyMyMj4pdU4jEDbauewF3uSmumaQWt9LTUXOW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lpUPIhZUTIhJSmhagkQz3KZ7kPIVSRO9OGsJIA1KslNEGNDRu8TvSrDI7env3eaaxvWqGVThSBRNKlCxdtrlwXS1tiy2i7RbCxSrFh2sTFytrE6THLTVixaC6KX4nqOXmtrEuXhXh/kCKgcsWKNd0DSIGdYsTQKWToKRYsVInUuF/OdxTOZYsTVG+QI9dO6NYsU818PA4aLl6xYpKhpNEHItLE8JQ7kJItrFSEyNKP1W8kwjWLFnPRIXYWLECtrorSxEEaxYsRZ//9k=";
  
File.WriteAllBytes(@"E:\img.jpeg", Convert.FromBase64String(base64str));
да, сходу такое не пишется)
 

ZennoScript

Moderator
Регистрация
04.03.2011
Сообщения
4 451
Благодарностей
1 885
Баллы
113

doc

Client
Регистрация
30.03.2012
Сообщения
8 684
Благодарностей
4 641
Баллы
113
Зарабатывать конечно необходимо, но и совесть нужно иметь
 

swiniks

Client
Регистрация
19.02.2015
Сообщения
244
Благодарностей
172
Баллы
43
base64 to ByteArray to PictureBox to md5hash:
byte[] bytes = Convert.FromBase64String(project.Variables["base64"].Value);
MemoryStream ms = new MemoryStream(bytes);
Image returnImage = Image.FromStream(ms);
pictureBox.Image = returnImage;
project.Variables["md5hash"].Value = ImageHashing.ImageHashing.AverageHash(returnImage).ToString();
 
Последнее редактирование:

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