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

Kevin Miller kevin at
Thu Jan 3 07:56:01 EST 2002

On 2/1/02 11:42 pm, Chipp Walters <chipp at> wrote:

> 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.

Use the detailed files to get the file size, or put the binary URL into a
variable, count the number of chars in that, then place it into a field.
But note that if you place it in a field it will no longer be binary and
will thus be corrupted if you need to use it as binary.


Kevin Miller <kevin at> <>
Runtime Revolution Limited - Power to the Developer!
Tel: +44 (0) 870 747 1165.  Fax: +44 (0)1639 830 707.

More information about the use-livecode mailing list