<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to evaluate the size of a file?</title><link>https://answers.axonivy.com/questions/462/how-to-evaluate-the-size-of-a-file</link><description>&lt;p&gt;How can I evaluate the size of a file?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/462/how-to-evaluate-the-size-of-a-file" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 28 Aug 2012 10:54:45 -0400</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/462/how-to-evaluate-the-size-of-a-file/463</link><description>&lt;p&gt;The method length works if you call it on a java.io.File class. A condition which filters file that are smaller than 1 MB looks like this:&lt;br&gt;
&lt;code&gt;Java.new("java.io.File", "C:/path_to_your_files/files/"+in.myFile.getPath()).length() &amp;lt; 1024000&lt;/code&gt;&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Tue, 28 Aug 2012 10:54:45 -0400</pubDate><guid>https://answers.axonivy.com/questions/462/how-to-evaluate-the-size-of-a-file/463</guid></item></channel></rss>