PDFs Not Downloading Properly From FTP Server

Roger Eller roger.e.eller at sealedair.com
Mon Jan 2 18:01:02 EST 2012


On Mon, Jan 2, 2012 at 5:42 PM, Gregory Lypny wrote:

> Hello everyone,
>
> I use LiveCode to upload PDFs to a remote Mac using
>
>        put url ("binfile:" & longFileName) into url ("ftp://" &
> aFTPAddress & newFileName)
>
> but when I download those same PDFs by using
>
>        put url ("ftp://" & aFTPAddress & newFileName) into url("file://"
> & aLocalAddress & newFileName)
>
> it appears to be corrupted or at least there is a lot of gibberish.  What
> am I doing wrong?  Should the last url reference, that is, the location on
> the local machine, be binfile rather than file?
>
> Regards,
>
> Gregory


Have you tried binfile: instead of file: to prevent alteration?  In certain
cases, you may not need the // either.

˜Roger



More information about the use-livecode mailing list