On unix, I suggest you call your sql statement from a script, and then in that same script call ftp with the needed parameters.
Else, from sqlplus you can get to the OS by typing !
si from sqlplus you could do :
! ftp .......
If you're running on windows, better wait for another reply
hope this helps