I am currently fiddling around with metadata and generally how to write/read it. In order to get a better understanding of it, I try to decode various files. In this case I have an .indd (Adobe InDesign) document that apparently has an image stored in its meta files. Now I wonder if it's possible to decode it and see the image somehow.
If I run it through a base64 decoder it shows some words like "Photoshop", "JFIF", ... but mainly gibberish.
Do you have an idea how this image might be encrypted and what steps it takes to decrpyt it?
Thank you a lot!
<xmp:PageInfo>
<rdf:Seq>
<rdf:li rdf:parseType="Resource">
<xmpTPg:PageNumber>1</xmpTPg:PageNumber>
<xmpGImg:format>JPEG</xmpGImg:format>
<xmpGImg:width>256</xmpGImg:width>
<xmpGImg:height>256</xmpGImg:height>
<xmpGImg:image>/9j/4AAQSkZJRgABAgEASABIAAD/7QAsUGhvdG9zaG9wIDMuMAA4QklNA+0AAAAAABAASAAAAAEA
AQBIAAAAAQAB/+4AE0Fkb2JlAGQAAAAAAQUAAklE/9sAhAAKBwcHBwcKBwcKDgkJCQ4RDAsLDBEU
EBAQEBAUEQ8RERERDxERFxoaGhcRHyEhISEfKy0tLSsyMjIyMjIyMjIyAQsJCQ4MDh8XFx8rIx0j
KzIrKysrMjIyMjIyMjIyMjIyMjIyMjI+Pj4+PjJAQEBAQEBAQEBAQEBAQEBAQEBAQED/wAARCAEA
ALUDAREAAhEBAxEB/8QBogAAAAcBAQEBAQAAAAAAAAAABAUDAgYBAAcICQoLAQACAgMBAQEBAQAA
AAAAAAABAAIDBAUGBwgJCgsQAAIBAwMCBAIGBwMEAgYCcwECAxEEAAUhEjFBUQYTYSJxgRQykaEH
FbFCI8FS0eEzFmLwJHKC8SVDNFOSorJjc8I1RCeTo7M2F1RkdMPS4ggmgwkKGBmElEVGpLRW01Uo
GvLj88TU5PRldYWVpbXF1eX1ZnaGlqa2xtbm9jdHV2d3h5ent8fX5/c4SFhoeIiYqLjI2Oj4KTlJ
WWl5iZmpucnZ6fkqOkpaanqKmqq6ytrq+hEAAgIBAgMFBQQFBgQIAwNtAQACEQMEIRIxQQVRE2Ei
BnGBkTKhsfAUwdH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8ASZB/1UxV3+M/J/8A1ftN/wCkyD/qpirv8Z+T/wDq/ab/ANJkH/VTFXf4
z8n/APV+03/pMg/6qYq7/Gfk/wD6v2m/9JkH/VTFXf4z8n/9X7Tf+kyD/qpirv8AGfk//q/ab/0m
Qf8AVTFXf4z8n/8AV+03/pMg/wCqmKu/xn5P/wCr9pv/AEmQf9VMVd/jPyf/ANX7Tf8ApMg/6qYq
7/Gfk/8A6v2m/wDSZB/1UxV//9k=</xmpGImg:image>
</rdf:li>
</rdf:Seq>
</xmp:PageInfo>
Oh, I found the solution.
According to this post (https://stackoverflow.com/a/5541237/13174465) the characters 

are encoded HTML new lines. I replaced those characters with a new line and was able to decode the data. An online tool that converts base64 to jpeg then did the job.
Turns out that the
was the thing that I missed out.