Version 2.07 of ScriptMaster adds a new function, getAsContainer, which allows you to return any InputStream from Groovy/Java as container data to FileMaker.

The example that comes with the development file shows how you could concatenate multiple files into a single container field result, using a SequenceInputStream.

You could also use this, for example, to have more control over URL connections - for example, setting custom authentication settings or cookies, and then returning the InputStream from the URLConnection.

Donwload the latest version at http://www.360works.com/scriptmaster