Hi Niels,
>> I have some static ftp files that I need to expose via a REST api.
are you over thinking this?
It sounds to me like you just put the static file in the web folder (or sub folder), then the client can just GET it (ie use a regular WebClient to Fetch the file.)
I'm not sure this needs to be in an API?
But assuming it does need to be an API;
Add a StringTheory object to the RETURNS tab of the API.
Put your file in there (probably Base64 encoded.)
>> I'm aware that I can BASE64 encode them but the client would prefer them as "files".
Hence my suggestion above that this is just a regular GET.
If you want more control, then check out the FileDownload (40) example. That has a generic "ServeDocument" procedure in the app for serving files.
An API method will return a JSON or XML response - and of course any binary in there would need to be appropriately encoded at the very least for Json or XML.
I recommend Base64 because that's easier.
Cheers
Bruce
Cheers
Bruce