filesize Questions
3
Solved
I know the normal way of getting the size of a file would be to use a FileInfo instance:
using System.IO;
class SizeGetter
{
public static long GetFileSize(string filename)
{
FileInfo fi = new ...
Contagion asked 28/9, 2011 at 13:4
3
I am using this javascript that I got from here, and it works perfectly for what I need it to.
var _validFileExtensions = [".jpg", ".jpeg"];
function File_Validator(theForm){
var arrInputs = th...
Prickly asked 16/7, 2012 at 23:42
8
Solved
I want to get the size of a file on disk in megabytes. Using the -s operator gives me the size in bytes, but I'm going to assume that then dividing this by a magic number is a bad idea:
my $size_i...
Ventilator asked 4/2, 2009 at 15:18
5
Solved
Images and script are hosted on the same account (one site), but we know only the URL of the image.
$image = "http://example.com/images/full-1091.jpg"
How can we get the size of this file?
Pseu...
3
Solved
I have a quick question and It might not be the right place the ask it but I hope someone can help me becuase im curious.
I'm creating a one-page website whit a lot of style (isnt designed webfrie...
9
Solved
While googling, I see that using java.io.File#length() can be slow.
FileChannel has a size() method that is available as well.
Is there an efficient way in java to get the file size?
1
Solved
I'm currently creating an HTML5 canvas-based drawing program. The user can draw an image, or several 'pages' of images, and save it to the cloud for quick retrieval later. This is for use on an int...
4
I have a folder containing many audio files, but some are ~4 bytes and seem to contain nothing, they are 0 seconds long and have no sound. I want to move them to a folder called "temp/".
How can I...
4
Solved
var length = new System.IO.FileInfo(path).Length;
This gives the logical size of the file, not the size on the disk.
I wish to get the size of a file on the disk in C# (preferably without inter...
3
Solved
According to the specifiction of gz the filesize is saved in the last 4bytes of a .gz file.
I have created 2 files with
dd if=/dev/urandom of=500M bs=1024 count=500000
dd if=/dev/urandom of=5G bs...
4
Solved
My objective is to convert form input, like "100 megabytes" or "1 gigabyte", and converts it to a filesize in kilobytes I can store in the database. Currently, I have this:
def quota_convert
@reg...
Semidome asked 30/6, 2010 at 0:2
1
I need to open a ZIP archive, check the file size of each file inside the archive and return an array with the numeric values (sizes). I don't want the archive to be extracted to check the file siz...
6
Solved
i've been googleing but all i get is getimagesize and filesize.
getimagesize dosent get the KB size just width and height which is not what im looking for.
filesize give me the message Warning: fil...
Bluegreen asked 27/9, 2010 at 15:20
4
Solved
I am experiencing inconsistencies with regard to multiple file upload in Safari 5.1 on Windows Vista (haven't tried other platforms). The input element has the multiple flag to allow selection of m...
Oxtail asked 29/8, 2011 at 13:52
6
Before anyone complains of "duplicate", I've been checking SO quite thoroughly, but there seem to be no clean answer yet, although the question looks quite simple.
I'm looking for a porta...
Scriptorium asked 26/1, 2012 at 23:15
1
I have a .dmg on my website for a Mac Software, but when i try to download this (even in different browsers), it doesn't show me the duration or the filesize. Could this be something i need to conf...
3
Solved
In WinRT there is no FileInfo class, only a StorageFile class.
How can I get the size of a file using the StorageFile class?
Mclean asked 5/1, 2013 at 3:59
4
Is it possible to keep checking with javascript if the filesize of a file on a webserver (e.g. http://www.mysite.com/myfile.js) is larger than 0 bytes and if so return a true or false value?
Thank...
Kinney asked 26/10, 2011 at 22:20
3
Solved
Does anyone know of any linux software to reduce the size of mp3 files while having a minimal effect on quality?
I just used pngcrush to do this to all the pngs in our asset library with goo...
1
Solved
I have encountered a problem where the size of iOS application file (IPA) is different between a file built using XCode-GUI archive action and the one created using a command-line build (xcodebuild...
Swish asked 15/7, 2013 at 8:48
1
Engineering incredibly large webapps, do we have any top or limit or best practice for filesizes in these large projects? The biggest I have seen is probably twitter/gmail which had around 1mb (Min...
Checkbook asked 12/4, 2013 at 11:19
3
Solved
import os, sys
def crawlLocalDirectories(directoryToCrawl):
crawledDirectory = [os.path.join(path, subname) for path, dirnames, filenames in os.walk(directoryToCrawl) for subname in dirnames + fi...
Disaffirm asked 25/9, 2012 at 19:43
8
Solved
Very recently I have come back to Delphi after a long pause and written a rather straightforward utility app my client requested to support an older release...
I know these days the size does not ...
Yamamoto asked 27/1, 2010 at 20:31
3
Solved
Recently I've come into the problem that my hard drive is getting obnoxiously full, but after going through my personal files and deleting/moving all of the oversized video files, I still have a ra...
5
Solved
I was wondering if there was a way to use jQuery to find out the file size for a PDF that i'm linking to a webpage.
I want to make it so that on hovering over the download link, a modal box pops ...
© 2022 - 2024 — McMap. All rights reserved.