For my project I need to get the Image sourse as hash code like this 28F996F0.jpg. I am trying the following code to get this value but having one error-Cannot implicitly convert type 'string' to 'byte[]'.
var Image= ImgresponseJson.query.pages[ImgfirstKey].thumbnail.source;
img.ImageData = string.Format("{0:X}.jpg", Image.GetHashCode());
My Json object class is
public class PoiImageAnswer
{
public int Width { set; get; }
public int Height { set; get; }
public byte[] ImageData { set; get; }
}
I could not get how to convert the image url to hash code like this 28F996F0.jpg