How to get an absolute media (image) path programmatically by a relative path

See also other filesystem topics: