copy a image

yves COPPE yvescoppe at skynet.be
Fri Jan 18 14:26:01 EST 2002


>your code was:
>>  > >put URL "file:"&tfilename into file NewfilePath
>
>klaus said to re-write as such:
>  > >put URL ("binfile:" & OldfilePath) into URL ("binfile:" & NewfilePath)
>
>and then you said:
>>  So something is copied into the right folder but this "something" is
>>  not an image (jpeg file) but  something unreadable.
>  > I'd like the destination file is also a jpeg image file.
>
>notice that in klaus' code he uses "binfile" not just "file" (as you have in
>your code).. because JPEGs are binary files you need to treat them as such
>otherwise there will be conversion done to the data that makes up the file
>(as you are currently experiencing)..
>




>put URL ("binfile:" & OldfilePath) into URL ("binfile:" & NewfilePath)
the new created file is not a jpeg file but something unreadable
I'd like the destination file is also a jpeg image file.

thanks.
-- 
Greetings.

Yves COPPE

Email : yvescoppe at skynet.be



More information about the use-livecode mailing list