Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to determine the size of a file... (zip)

 
Sumanth R Prasad
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !
Plz lemme know if there's a way of determining the size of a zip file in bytes...
(can I use RandomAccessFile.length() for zip files?)
Thanx in advance
Sumanth
 
jason adam
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using a regular File object will do the trick, I believe.
 
Alex Radomski
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Plz lemme know if there's a way of determining the size of a zip file in bytes...
(can I use RandomAccessFile.length() for zip files?)

java.util.zip.ZipEntry has getCompressedSize()
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic