title: Is there a way to get attached file properties?
body: <p>I have a media file attached to my Notes document. And here is my code to pull file size info:</p>
  
  <pre><code>RichTextItem body = (RichTextItem)COLL_DOC.getFirstItem("Body");
  Vector atts = body.getEmbeddedObjects();
  
  for (int i = 0; i &lt; atts.size(); i++) {
      EmbeddedObject att = (EmbeddedObject)atts.elementAt(i);
      if (att.getType() == EmbeddedObject.EMBED_ATTACHMENT) {
          System.out.println(att.getFileSize());
      }
  }
  </code></pre>
  
  <p>But I need to get media file length in seconds instead of file size in bytes. So is there an easy way to get video length or get attached file properties that shows video length?</p>