I have been struggling with an issue for the last couple of days and I have not been to find a solution.
I am calling a specific REST API from my C# project and as a return I am getting a strange looking string.
I know that this string is suppose to be an Image but I am not been able to convert it:
The string (First Part) looks as follows:
I know this is a JPEG File and the second a PNG but it doesn't matter what I do I am not able to convert it.
Note: I do not have access to the code of the REST API Server so I am only able to get the string response.
Does anybody know what format this is and how to get this back into a bitmap format?
What I have tried:
var result = coreApi.CoreGetGalleryImageV1("string", 188, 188);
byte array = Encoding.UTF8.GetBytes(result);
var ms = new MemoryStream(array);
Image x = Image.FromStream(ms);