how to calculate the length in chars of a binary file?

David Vaughan drvaughan55 at mac.com
Wed Jan 2 22:23:01 EST 2002


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


-- 



More information about the use-livecode mailing list