FTP download

Jacques Hausser Jacques.Hausser at ie-zea.unil.ch
Wed Jan 22 06:28:01 EST 2003


> Using Rev 1.1.1 I downloaded a file from a FTP server with the
> following script:
>
> put "ftp://XXX:XXX@10.0.1.202/Belle.mp3" into tUrl
> put "binfile://DiscoOSX/Songs/Belle.mp3" into NOMEURL
> put url(tUrl) into url(NOMEURL)
>
> I expected a binary file... but I got a TEXT file
>
> WHY? How can I download binary files from a FTP server?
>
> Best Regards
>
> Paolo Mazza


Paolo,

Perhaps you should set the fileType to the good
creator&type. (I'm not sure, but it's worth to try anyway...).

Jacques


Prof. J. Hausser
Institute of Ecology - Zoology and Animal Ecology
University of Lausanne
CH-1015 Lausanne-Dorigny
tel: ++ 41 21 692 41 62
fax: ++ 41 21 692 41 65




More information about the use-livecode mailing list