I must use an existing method that is like saveAttachment(Attachment attachment) where Attachment has a File attribute.
My problem is that I'm retrieving a byte[] and I want to save it using this method. How can I have a "local" File just for saving ?
Sorry if my question is dumb, I don't know much about Files in Java.