Showing image in frappe form

hello… I have a doc type say person and on some field value change event I am calling C# web api which returns base64 string of image stored on some other server’s directory. So, my requirement is to show this image in frappe form.

so, I want to know that which data type to take in doc type for image and also what code to write in js to set src of image ?

i don’t fully understand you but . i think attachment works like a link to files doctype so you need to upload the picture first then you refer it to attachment image …