copy a image

Shao Sean shaosean at unitz.ca
Fri Jan 18 13:25: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)..




More information about the use-livecode mailing list