Jump to content
Sign in to follow this  
Stuart Taylor

Length ( containerfield ) question

Recommended Posts

Length ( containerfield ) calculation returns the file size in a container.

Files stored as a reference aside, the file size of a Quicktime movie stored in a container seems to be wrong (way too small).

So what file size does it safely return, image, stored file… ?

Anyone know definitively or should i try every combination, think i will probably get it wrong and would like to be sure.

best

Stuart

Share this post


Link to post
Share on other sites

QuickTime movies aren't stored in containers - they are stored by reference only. You can store the movie in a container as a "file" but then it is not playable as when stored as a movie by reference.

Share this post


Link to post
Share on other sites

What do you mean by "too small"? AFAIK, you cannot embed a movie in a container, so the size should be 0.

Share this post


Link to post
Share on other sites

The size was always around 1k

Are you sure about this? I get exactly 0 when container contains a reference.

Share this post


Link to post
Share on other sites

Hey Comment,

Interestingly it would seem that when adding a quicktime file and having Length ( container ) as a calculation not unstored a value is returned around 150b, if the Length ( container ) is unstored 0b is returned.

The bytes go up and down based on the path length which could be what it is returning.

Share this post


Link to post
Share on other sites

OK, I see it now. It's not bytes. What a strange bug (or is it a feature?).

If the field is unstored, it correctly returns the size of file. But if the field is stored, it returns [color:red]the number of characters in the path: instead of Length ( Container ) it actually does Length ( GetAsText ( Container ) ).

If the content is embedded, both versions return the file size, as expected.

Edited by Guest

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.