Problem viewing files that were saved as Attachments using PSoft functions


I was able to apply the code delivered in FILE_ATTACH_WRK to send an attachment to our server, and also to retrieve (view) the file. But something is happening to the files when I return them from the server to view them. For example, I saved a text file, but when I pull the file back to view it appears that all the carriage returns have been removed. A file saved like this....

-- Script : delete_bad_referral.sql
-- 01/10/2011 rjm
-- Return failure code when program does not complete successfully
whenever sqlerror exit failure;
whenever oserror exit failure;