[SalesForce] Lightning component – display an image stored in files

I need to display an image stored in the files of my org in alightning component.
For now I just want to display an image, with its Id, not dynamically.

I tried this in my component:

<img src="{!'/servlet/servlet.FileDownload?file=0696E000000AT3BQAW'}" alt="" />

but the image is not displayed.

Best Answer

You need to use the ContentVersion (prefix 068), not the ContentDocument (069), then you can display it like this:

<img src="{!'/sfc/servlet.shepherd/version/download/' + v.contentVersion.Id}" />