If i use the FTP package and below code
- Code: Select all
l_conn := ftp.login('host', 'port', 'user', 'password');
ftp.put_local_binary_data(ftp.get_remote_binary_data((p_conn => l_conn, p_file => 'forms_folder' || '/' || 'form.fmx'),'FORMS_LOCATION','form.fmx');
utl_tcp.flush(l_conn);
ftp.logout(l_conn);
utl_tcp.close_connection(c => l_conn);
The downloaded file is now 173,968 in size and is corrupt.
Any ideas what im doing wrong?
Also tried saving to table and it was the larger size in the table.