首页 > 代码库 > Upload Files To FTP in Oracle Forms D2k
Upload Files To FTP in Oracle Forms D2k
Upload Files To FTP in Oracle Forms D2k
Use following procedure to upload files to Ftp.
PROCEDURE Ftp_Upload IS
outfile text_io.file_type;
BEGIN
-- write a ftp script
outfile := text_io.fopen(‘D:\ftpsendsource.ftp‘, ‘w‘);
text_io.put_line(outfile, ‘open yourftpurl‘);
text_io.put_line(outfile, ‘youruser‘);
text_io.put_line(outfile, ‘yourpassword‘);
text_io.put_line(outfile,‘binary‘);
text_io.put_line(outfile,‘send D:\Temp\Test1.txt‘);
text_io.put_line(outfile,‘send D:\Temp\Test2.abc‘);
text_io.put_line(outfile,‘disconnect‘);
text_io.put_line(outfile,‘bye‘);
text_io.fclose(outfile);
host(‘cmd /c ftp -s:d:\ftpsendsource.ftp‘);
exception
when others then
if text_io.is_open(outfile) then
text_io.fclose(outfile);
end if;
message(sqlerrm);
END;
Upload Files To FTP in Oracle Forms D2k
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。