Hi Vladimir
I tried this and the link to the image is like
sitename/pluginfile.php/6922/mod_resource/content/1/image filename
Is this the format you get - the image will only be accessible to the user if they are able to access the file - so they would need to be logged in and enrolled in the course the file has been uploaded to.
What sort of message are you trying to do this in - email, web page, Totara notifiaction?
Regards