How to get file from custom field to resolve message


we have an ticket custom field from type upload one file.
If we resolve an ticket this file should be send with the resolve mail.
I figured out how to get the link to this file.
But i don’t know how to get this file as an attachment to the resolve mail.

Any ideas???