I'm trying to load a picture from active directory into a django template.
This is the result :
"b'\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x01\x00\x00\x00\x00\x00\x00\xff\xdb\x00C\x00\x02\x01\x01\x01\x01\..."
I have seen the PHP method and tried to implement it using python with no success. I also tried the base64.decode
, to save it in an image file and convert it using pil then load it, base64.decodebase64
, I even tried to convert it using javascript and load it in src but all these methods didn't work, I have read a lot of articles but none helped me.
ANy help would be appreciated.