how to calculate the length in chars of a binary file?
Chipp Walters
chipp at chipp.com
Thu Jan 3 04:47:01 EST 2002
David,
Thanks for the suggestion...I'll check it out.
I can upload the file to a webserver from the field when I know the string
length of the field (precalculated) but, I need to be able to precalculate
it from within RR. I'll check for the eof.
-Chipp
-----Original Message-----
From: use-revolution-admin at lists.runrev.com
[mailto:use-revolution-admin at lists.runrev.com]On Behalf Of David Vaughan
Sent: Wednesday, January 02, 2002 9:21 PM
To: use-revolution at lists.runrev.com
Subject: RE: how to calculate the length in chars of a binary file?
Chipp
When you say it doesn't work, what result are you getting? Might a
short value arise from Rev seeing an end-of-string character in the
binary data? Have you checked whether you can put the same data back
to a file from the field, and get all of it?
cheers
David Vaughan
At 21:06 -0600 2/1/02, Chipp Walters wrote:
>Nope, for some reason that doesn't work.
>
>-----Original Message-----
>From: use-revolution-admin at lists.runrev.com
>[mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Scott Slaugh
>Sent: Wednesday, January 02, 2002 6:04 PM
>To: use-revolution at lists.runrev.com
>Subject: Re: how to calculate the length in chars of a binary file?
>
>
>----- Original Message -----
>From: "Chipp Walters" <chipp at chipp.com>
>To: "Use-Revolution" <use-revolution at lists.runrev.com>
>Sent: Wednesday, January 02, 2002 4:42 PM
>Subject: how to calculate the length in chars of a binary file?
>
>
>> I can load a binary file into a field:
>>
>> put URL "binfile:C:/test.jpg" into fld "test"
>>
>> how can I figure out the length in characters for that file? I need to
>know
>> before uploading to a server.
>
>Try this:
>put the number of chars of fld "test"
>
>Scott Slaugh
>>
>> thanks anyone,
>>
>> Chipp Walters
>>
>> ----------------------------
>> | ___ ____ _ __ |
>> | / _ | / / /___ __(_) /_ |
>> | / __ |/ / __/ // / / __/ |
>> | /_/ |_/_/\__/\_,_/_/\__/ |
>> | http://www.altuit.com |
>> | chipp at altuit.com |
>> ----------------------------
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution
--
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list