filesize Questions

14

Solved

Is there a way to get the size of a remote file like http://api.twitter.com/1/statuses/public_timeline.json in shell script?
Diatomic asked 21/12, 2010 at 9:21

25

Solved

I'm using this function to convert a file size in bytes to a human-readable file size: function getReadableFileSizeString(fileSizeInBytes) { var i = -1; var byteUnits = [' kB', ' MB', ' GB', ...
Gaughan asked 2/5, 2012 at 19:27

5

Solved

Is there a way to find the size of a file object that is currently open? Specifically, I am working with the tarfile module to create tarfiles, but I don't want my tarfile to exceed a certain size...
Pericarp asked 12/11, 2008 at 11:49

6

Solved

I am trying to get the size of a directory, as well as it's content on OS X using Swift. So far, I have only been able to get the size of the directory itself, with none of it's content. For ...
Strident asked 28/9, 2015 at 1:19

8

Solved

I need to determin the byte size of a file. The coding language is C++ and the code should work with Linux, windows and any other operating system. This implies using standard C or C++ functions/...
Synopsis asked 11/3, 2010 at 10:26

7

I am selecting an image from gallery.I want to determine the size of the image programatically in kb or mb. This is what I have written: public String calculateFileSize(Uri filepath) { //String f...
Lyrebird asked 21/7, 2014 at 11:42

6

Solved

I'm sure I've just missed this in the manual, but how do you determine the size of a file (in bytes) using C++'s istream class from the fstream header?
Reggi asked 9/3, 2010 at 14:0

14

Is there any way to find out the file size before uploading the file using AJAX / PHP in change event of input file?
Larkins asked 21/9, 2011 at 9:18

13

Solved

I have a zip file on a server. How can I check if the file size is larger than 27 MB? File file = new File("U:\intranet_root\intranet\R1112B2.zip"); if (file > 27) { //do something } ...
Amersham asked 24/1, 2012 at 15:49

6

i am using documentPicker to get url path of any document and then uploaded to the database. I am choosing file (pdf, txt ..) , the upload is working but i want to limit the size of the file . pu...
Foreign asked 5/5, 2017 at 5:39

6

Solved

how can i get the "filesize" from a string in php? I put the string in a mysql database as a blob and i need to store the size of the blob. My solution was to create a temp file and put the strin...
Edwinedwina asked 18/8, 2010 at 10:31

2

Solved

i am coding a simple doc managing script and need to get the file size and file type /file or folder/ in a table. somehow it doesn't work into the mention directory. please help if possible: <...
Morelos asked 27/12, 2015 at 15:6

3

Solved

I have a php script that reads an XML file and modifies it with SimpleXML. After all the modifications are done script saves the file (size ~ 2.8 mb). I need to load this XML file with jQuery and i...
Agglomerate asked 8/8, 2011 at 17:31

12

Solved

Is there any easy way to create a class that uses IFormatProvider that writes out a user-friendly file-size? public static string GetFileSizeString(string filePath) { FileInfo info = new FileInfo...
Halhalafian asked 24/9, 2008 at 17:44

5

Solved

I've always liked the readability of assignments that used TimeUnit like so: long timePeriodInMillis = TimeUnit.MINUTES.toMillis( 53 ); Over something like: long timePeriodInMillis = 53 * 60 * ...
Edie asked 13/12, 2011 at 20:40

5

I have a logs table that stores various file sizes in bytes. I want to be able to query the database and return the smallest possible float which has been converted to MB GB etc. At present I can r...
Patency asked 11/1, 2014 at 1:20

7

Is there any way to reduce the size of the .ttf fonts? i.e. if we want to remove some glyps which we are not using.
Occupational asked 14/4, 2010 at 6:56

2

I have a pdf that is around 4MB in size. When I open it in Adobe Acrobat (version 8) and go to File -> Save as the resulting pdf is only 137KB. This pdf is 67 pages big, each page looking very sim...
Jade asked 29/1, 2010 at 12:37

4

Solved

I'd like to be able to get the file size on an image on a webpage. So let's say I have an image on the page (that has loaded) like this: How do I call a function in Javascript (or, even better,...
Benetta asked 3/1, 2014 at 15:50

12

Solved

I am using a library that reads a file and returns its size in bytes. This file size is then displayed to the end user; to make it easier for them to understand it, I am explicitly convertin...
Quidnunc asked 4/3, 2011 at 13:4

4

Solved

I'm running a Synology NAS Server, and I'm trying to use PHP to get the filesize of files. I'm trying to find a function that will successfully calculate the filesize of files over 4Gb. filesize($...
Pathic asked 26/6, 2011 at 4:52

2

Solved

I have an application that scans file and collects meta data about a file. One function is to get the file size of a file. To do so, I am using the winapi function GetFileSizeEx(Handle, PLARGE_INTE...
Sacken asked 19/8, 2020 at 16:53

14

Solved

I want to have a batch file which checks what the filesize is of a file. If it is bigger than %somany% kbytes, it should redirect with GOTO to somewhere else. Example: [check for filesize] IF %f...
Parament asked 29/7, 2009 at 11:40

8

Solved

What's a simple way to find the size of my Git repository? And I don't mean du -h on the root directory of my repository. I have a lot of ignored files, so that size would be different from my tot...
Atheroma asked 18/11, 2011 at 16:3

7

Solved

I am working on a C++ program and the compiled object code from a single 1200-line file (which initializes a rather complex state machine) comes out to nearly a megabyte. What could be making the f...
Suffuse asked 22/1, 2009 at 19:1

© 2022 - 2024 — McMap. All rights reserved.