Download and save .doc file

Flavel Steve stevef at upnaway.com
Mon Dec 12 17:32:57 EST 2005



On 13/12/2005, at 5:36 AM, Sarah Reichelt wrote:

>> I have successfully downloaded and saved  .jpg, .gif and .htm files
>> but I have only partial success on .doc, and .pdf files.
>>
>> How do you download and save .doc and .pdf files?
>>
>
> Hi Steve,
>
> There shouldn't be any difference. .htm files are just text but all
> the other file types you mention are binary files and should download
> fine so long as you remember to save them as binfiles, not just as
> files.
Thanks Sarah adding "for binary write" solved the problem
--open file tFile for binary write
>
> I see you are on a Mac, so before saving, set the fileType to empty.
> That causes the Finder to work out what sort of file it is based on
> the extension.
I did not know that, now my files know who they are.
>
> When you say it only partially works, but are the problems you
> encounter? You do know that Rev won't be able to open those file
> types?
Yes I found that out

  regards

Steve
>
> Cheers,
> Sarah
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>




More information about the use-livecode mailing list