How to add a file to a message as an attachment?
Pretty please. I've tried to use something similar to 
Edit : forgot to mention but I use Kotlin, not Groovy
file.inputStream() but to no avail, and I can't find how to do this anywhere. I have a File (and its path as a String) and I wanna attach it in a createMessage. That's it. Edit : forgot to mention but I use Kotlin, not Groovy