Get java.io.File from attached document

Hi,

How can I convert an attached document to a standard Java File type in a Groovy Script Connector?

Thanks in advance.

I think you can use this API to retrieve the file content as byte array as make a File instance as needed.