Thanks very much for your reply, I've given that a try and it results in the new file being renamed filename.jpg.jpg that is the extension .jpg is added again to the original filename.
I added code to strip off the extension of the filename from the recordset before passing but this results in the filename now being set to just ".jpg" ie extension only filename lost.
I also get:
"It appears that one of your server-side values is improperly coded. Please check this interface for inconsistencies." when I try to look at the DFP server behavior.
What am I doing wrong?