file-size

Whats the actual file size?

(Only programmers would know) In Windows XP, under File Properties, Whats the actual file size?.. Size or Size-on-disk? I'm looking for the exact size of the file, in bytes.. (1,024 bytes NOT 1,000 bytes) Great! So blame it on the disk!, Why not call it Size Windows takes to store this file? ...

H.264 file size for 1 hr of HD video

I'm looking for an order of magnitude estimate for expected on-disk file size for 1 hour of H.264 encoded HD video transcoded from HDV (HD on a MiniDV tape). I want to archive approximately 100 hours of such content and want to figure out whether I'm looking at a big hard drive, a multi-drive unit like a Drobo, or an enterprise-level sto...

Programatically determining file "size on disk" in advance

I need to know how big a given in-memory buffer will be as an on-disk (usb stick) file before I write it. I know that unless the size falls on the block size boundary, its likely to get rounded up, e.g. a 1 byte file takes up 4096 bytes on-disk. I'm currently doing this using GetDiskFreeSpace() to work out the disk block size, then using...

Why does the Flex compiler generate varying file sizes on successive compilations of the exact same source code?

I'm building a SWF using the command line compiler mxmlc.exe. The compiler writes the output file size as part of it's stdout. If I run the compiler multiple times in succession without changing the actual source code, I see the file size bounce up and down a few bytes at a time. C:\>mxmlc.exe Gallery.as C:\Gallery.swf (28443 bytes) ...

python file size

I am trying to split up a large xml file into smaller chunks. I write to the output file and then check its size to see if its passed a threshold, but I dont think the getsize() method is working as expected. What would be a good way to get the filesize of a file that is changing in size. Ive done something like this... import string ...

total size of group of files selected with 'find'

For instance, I have a large filesystem that is filling up faster than I expected. So I look for what's being added: find /rapidly_shrinking_drive/ -type f -mtime -1 -ls | less And I find, well, lots of stuff. Thousands of files of six-seven types. I can single out a type and count them: find /rapidly_shrinking_drive/ -name "*offende...

Comparing local and remote file size via Net::FTP in Rails

I wrote a sync script to upload a local file if it does not exist on the ftp server. I want to make it more robust by ensuring that the file size on each match. This will allow the script to correct the file if it was interrupted during an upload. What is the best way to get the file size for both the remote and local files. I am usin...

File size restriction or limitation in C#

I want to generate XML file from one object (Contains nested collection) with large amount of data. but there is a limitation with XML that it can't exceed 50MB. Are there any good way to do this? Update : speed is not important, the main thing is split into 50MB for each file ...

How could file size change without 'date modified' getting changed?

I was puzzled seeing this. My vmware virtual machine was running and I was monitoring the size of the virtual disk file. The size of the file kept increasing but 'last modified' date remained unchanged. How is this possible? Confused. My host OS is windows vista and guest (which I guess doesn't matter) is Linux. ...

changing a Flex movie to use Runtime shared libraries and losing text in charts

Hi, I'm creating a small size Flex movies which contains two line charts, at the moment the size of the release build swf is 343KB, which is too large for our needs. I've tried changing the loading of the SWC file to Runtime Shared Libraries, but I found that this removed the text of the charts (the text for the x and y axis). Why wou...

Increase the size of sql compact 3.5 .sdf file using C#

I'm using Sql Compact3.5 as my DB with C# .NET what is the maximum size of sdf that I can give??? Is there any way to programatically increase the maximum size of the sdf file??? if so how??? ...

How do I validate the size of a file using JavaScript?

when upload button clicked on page... want to check filesize selected in fileupload control and stop postback of upload button if file size exceeds... what are the ways to do this using jquery/javascript? ...

File size and mime-type before upload

Hi, I've scavenged on every single topic on this forum to try and find an answer before I posted this. Most people say you should simply use SWFUpload, some others mention Activex, and it keeps going. I know this is do-able, as Google does it with gMail when you try to upload a file that's bigger than 25mb, or executable. My question i...

How do I get the file size of a large (> 4 GB) file?

How can I get the file size of a file in C when the file size is greater than 4gb? ftell returns a 4 byte signed long, limiting it to two bytes. stat has a variable of type off_t which is also 4 bytes (not sure of sign), so at most it can tell me the size of a 4gb file. What if the file is larger than 4 gb? ...

DOMPDF: files with 0 bytes and text/plain mime-type

Hi, I'm using Kohana 3 and pdfview/DOMPDF to generate pdf files but they are generated with 0 bytes and text/plain mime-type. Controller: public function action_pdf() { if(isset($_POST['dados'])) { $pdf = View_PDF::factory('export/pdf'); $pdf->title = ''; $pdf->headers = array(); $pdf->data = array()...

Smaller APK size with large assets?

I am creating a simple android app to view a comic book. The pages are large(0.5-1 mb each), high quality .png's and I am loading them into a webview to make use of the built in zoom controls. So far I only have 17 files and the APK size is already about 16 mb. I'm looking to add over 200 files in future updates. I can't really reduce th...

MediaPlayer on Android

Hi all, I want to know the total length in kb of mp3 file .how to do this in android Thanks in advance... ...