How to compress file

code of compress file in Java

Very well put, clear, and oh so precise. Well if you looked in the API or even read a BOOK you may have found JAR files and the API for zip type files, and if you had done a search on the forum you may have even found code examples. But thank God you posted your clear request so we could do it for you ....

Similar Messages

  • How to compress file 32+ mb for email attachment

    how to compress file 32+ mb for email attachment, after I used compress it's still shows 29 mb. Is there another step I could do. I am new with MAC so please forgive if this sound simple and stupid question.

    You simply don't attach that file to email.  Even if you could cut the size by half, that's still way too big for email.  Many mail servers will remove attachments over a certain size, and for most of those that size is below 10 MB.  Find another way to share that file, like a web server or Dropbox or something along those lines.

  • How to compress file to 100MB limit

    Hello,
    Please advise how do I compress file from FCP to 100MB .mov file.
    At the moment I am using a H.264 codec, under High setting, one pass
    By the size exceed the 100MB limit.
    Please does anyone come across this before?
    Thank you

    You only gave one variables for your video, 100MB limit. One need at least 2 variables (of 3) to know what size a given video will be.
    Duration
    File size
    or
    Data Rate.....
    Here download this free program to help you determine how to get your video under the 100 MB limit.
    http://www.apple.com/downloads/macosx/video/bitratepro.html
    It's free and works great. There is a help section under the help menu to tell you how to use the program.

  • Compression File

    Hi
    How to compression file contain waveform in binary file.
    I'm using zip tools put the file contain 61kbyte convert to 41kbyte, not good . I need another Technical .
    Thanks

    muks wrote:
    I dont use text language all the time.To me conveying what we think is more important. 
    It's also important that the other person understands what u () say, and as has been noted previously, this forum is often frequented by people whose native language is not English, and would not know about such colloquialisms.
    To poster: You will first need to indicate what's not good about the compression that you're already getting. For instance, what kind of compression are you trying to achieve? There are other compression schemes, and you can also vary the compression level with ZIP files, but you will not be able to do so with LabVIEW's ZIP functions. I'm not sure if the OpenG compression library allows you to set compression levels. You can always install a compression program on your computer (such as FilZip or 7-Zip) and simply call it using System Exec.
    Message Edited by smercurio_fc on 08-24-2008 02:45 PM

  • How to compress a bunch of .java files into a single .jar file?

    Hello everyone! I am working on a Chinese segmentation job. Someone offers very excellent
    such tool. When I copy his example, I find it imports
              import org.apache.lucene.analysis.Analyzer;
              import org.apache.lucene.analysis.Token;
              import org.apache.lucene.analysis.TokenStream;
              import org.mira.lucene.analysis.IK_CAnalyzer;I have downloaded IK_CAnalyzer.jar file which contains org.mira.lucene.analysis.IK_CAnalyzer class.
    I find that I need to download lucene, thus I went into the following website
    http://lucene.apache.org/#06+May+2008+-+Lucene+Java+2.3.2+availableand downloaded the lucene-2.3.2-src.tar.gz. Aftre unzip, I found all java source files in java directory (and in many other different subdirectories). Now it seems I need to compile all the src files and compress them into a single .jar file while keeping their original hierarchy unchanged
    I think I should use jar command and with some additional options.
    Can anyone show me how to do that?
    Many thanks!
    Edited by: aaron9979215 on Jul 12, 2008 5:17 AM

    Thanks for reply, I?ve read that tutorial before I post. Howevver, it do tells how to compress a jar file.
    The question I have is how to compile two .java file stored in different packages like
    rootPackage-->subPackage-->a.java
    rootPackage-->subPackage2-->b.java
    I want to compile a,java and b.java both and keep their hierarchy like rootPackage.subPackage.a unchanged. If I directly go into subPackage and compile a.java, I think the hierarchy is changed.
    What do you think about it?

  • How to compress my files and folders, How to compress my files and folders

    Good morning,
    My name is Jai Bhandari and I am from London, UK.
    I am sending this out to everyone that can help me to compress my files and folders, as I believe my macbook pro is starting to freeze and caused by having a slow machine, is there anyone that can suggest to me how and what do I use to compress these files into one folder.
    Thank you for reading this and hope to hear from you soon.
    Many regards
    Jai

    You can 'compress' files and folders from the Finder by selecting the items and choosing File>Compress "selected file or folder". This will create a zip archive and will save you some space. (I just tried it on a 16GB folder and it compressed it to an 11GB zip file). After you zip the file/folder the original can be deleted )until you need to access it again, then you can just double-click the zip file).
    If you're trying to free up disk space on your hard drive, this is not the best method... but you didn't ask about that...
    Clinton

  • How to check for a compressed file

    hi,
    I need to restrict the user to upload only compressed files (zip,sit etc.).
    how do u check whether the input file is compressed or not. is there any way to do that? or should i check only with the extension?
    Thanuja.

    Checking the extension is the best what you can do. You can also consider the java.util.zip API [1] to check if the file is decompressable, but that is rather expensive.
    [1] http://java.sun.com/j2se/1.5.0/docs/api/java/util/zip/package-summary.html

  • I compressed Activity Monitor and deleted the compressed file in error. How do I get it back?

    In trying to reduce my CPU load, I compressed the Activity Monitor. Before I can use the compressed file, I mistakenly deleted it and now when I try to open it, I get the dreaded spinning wheel. After a long wait, I forced quit.
    What happened and how do I get Activity Monitor back?

    Never tamper with programs which come with the system. You could try downloading and applying the 'combo updater':
    http://support.apple.com/kb/DL1399
    However this won't help if Activity Monitor hasn't been updated since the initial release, which may well be the case. In that event you will need to reinstall Snow Leopard from your original install disks and then apply the combo updater again.
    Alternatively it may be possible to extract Activity Monitor from the installed disk by using Pacifist - no promises about that.

  • How do I reduce the MG size/compress file prior to inserting into word or excel?

    How do I reduce the MG size/compress file prior to inserting into word or excel?

    The Mac is (IMHO) - Excel is a MicroSoft product - therefore it needs MS support
    LN
    PS - you might give the Apple Numbers forum a try - more likely that someone there might know Excel details than here in the iPhoto forum
    LN

  • How to compress dmp file in expdp..

    Hi All,
    I am usign Oracle database 10g, anybody havign any idea of how to compress your dumpfile using expdp then let me know.
    I tried with compression option of expdp but the dmp file size is same as I have it without compression.
    Thanks..

    Hello maybe you can try with this
    the command is mknode (with this option you can to comprees at the same time to execute the exp)
    ORACLE_HOME=/u01/OH_RDBMS/10.2.0
    PATH=$PATH:$ORACLE_HOME/bin:/usr/bin:/usr/local:/bin:.
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:.
    ORACLE_SID=PSFSHIST
    NLS_LANG=American_America.WE8ISO8859P1
    export ORACLE_HOME PATH LD_LIBRARY_PATH NLS_LANG ORACLE_SID
    #directory
    DIR_RESP=/RESPALDO/
    fecha=`date +%d.%m.%Y_%Ou`
    #drop the last backup
    rm $DIR_RESP/*.gz
    #create exp
    #you can use the pipe for compress the file
    mknod $DIR_RESP/exp.pipe p
    #compress dmp whit file pipe
    gzip < $DIR_RESP/exp.pipe > $DIR_RESP/export_xxxx.dmp.gz &
    #El export se manda al archivo tipo pipe
    you can change for expdp
    exp system/xxxxx@xxxxxxx full=y file=$DIR_RESP/exp.pipe log=$DIR_RESP/export_xxxxx.log statistics=none direct=y consistent=y rows=no
    #TERMINA PROGRAMA

  • How to compress my file

    Hi,
    I am working on a wedding video that I shot with two cameras. I have edited it down and the final project was about 2 hours and 10 minutes. I used compressor and converted it to a mpeg2 which reduced the file to 1.9 gigs. However, I have come to discover that IDVD does not accept that file type.
    Next I re compressed it into a .mov, but that only reduced it to 10 gigs - which won't fit on a standard size dvd...
    I re-edited the film to 1 hour and 30 minutes, but still the file size is just over 7 gigs as a .mov.
    Does anyone have any suggestions on how to compress it without having to whittle it down to under an hour?
    Thanks for your help.

    When I initially finished the project, I exported as a Quicktime movie and it was 49+ gigs! (Yikes!)
    Still learning the Final Cut Suite and opened up Compressor for the first time realizing that it was the tool I needed. I compressed it down to 1.91 gigs, but did so as a .mpg - which I learned was not compatible with either iDVD or Studio Pro.
    That's when I scrolled down the list of "settings" and realized I could make it a .mov, which only got it down to 10 gigs. Which is where I was when I posted for help.
    I think I finally got it now, thank you so much for the help and advice...

  • I need to know how to "compress" the Folder Tree.  The File folders are moving to the right and out of sight in Lightroom 5.

    I need to know how to "compress" the Folder Tree.  The File folders are moving to the right and out of sight in Lightroom 5.

    A couple of suggestions that may help:
    - Make sure you've made the left-hand column as wide as possible by grabbing the divider between the column and the Library grid view.
    - You can hide a parent folder from the display by right-clicking it and selecting Hide This Parent. This will shift all the child folders to the left.

  • How to compress AVI files in Lion sending by mail

    Hi ALL,
    As the titel says, AVI file size is now 36Mb.
    How to compress the AVI file so that I can sent it by Mail.
    Dimaxum

    The only way is to reduce the length or the size or the quality with a video editor. Probably all three. Usually, video files are too big for email. You should find a different method of transferring it.

  • How to compress or shrink PDF files in OSX10.5.8

    How to compress or shrink PDF files in OSX10.5.8

    Lower the dpi of images IN the pdf they take up the most Space of the file and Will not be succesfully compressed by zip and the likes

  • How to compress PDF file when sending email through SP01

    Hi expert,
    i need your help.
    when i use tcode SP01 and fetch the spool no which i want, then select the spool no, cilick menu Spool Request->Forward->Send using SAPOffice to send mail.
    i can send the list as an attached file to external mailbox.
    Now the problem is :  the size of attached PDF file is too large, how to compress it? make it more smaller?
    Thanks&Regards
    Aiolos
    Edited by: yang Aiolos on Nov 24, 2010 10:08 PM

    Hi,
    After Converting list to Pdf try the below code.
    DATA :  GD_BUFFER TYPE STRING.
      LOOP AT IT_PDF_OUTPUT.
        TRANSLATE IT_PDF_OUTPUT USING ' ~'.
        CONCATENATE GD_BUFFER IT_PDF_OUTPUT INTO GD_BUFFER.
      ENDLOOP.
      TRANSLATE GD_BUFFER USING '~ '.
      DO.
        IT_MESS_ATT = GD_BUFFER.
        APPEND IT_MESS_ATT.
        SHIFT GD_BUFFER LEFT BY 255 PLACES.
        IF GD_BUFFER IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    Then mail it. <removed by moderator>
    Edited by: Thomas Zloch on Nov 25, 2010 10:21 AM - please do not ask for ...

Maybe you are looking for

  • Copy, cut and paste in Joomla

    I have created the user.js file and placed it under the default profile but cant get the cut, copy and paste to function in Joomla. I have copy and paste the script into the user.js file. I have also changed the url in that script to point to http://

  • Sound option in the control panel

    I need to access my sound options within the control panel so I can set my sound for Skype but when I click on the 'sound' option nothing happens - I cannot open the sound menu - any ideas? I have a compaq cq5307uk windows 7 home premium 64 bit Thank

  • DLL in TestStand

    Hi,        I am having a DLL that is returning a pointer to character. Is there any provision to receive that pointer in TestStand. I am using this DLL as an adapter in TestStand. While the DLL is getting attached, TestStand is not recognizing the pr

  • Search in calendar

    Hi everyone, I have an exchange server for my e-mails but don't believe that this is relevant for the question I have. I found out that all of my calendar entries (even very old ones) sync to my iPhone/iPad, but that the search function on my iPhone/

  • Why does my laptop give me a warning saying that firefox is using too much memory and to restart firefox to be more efficient? I just bought this laptop so I know it has the power to run what I need it to.

    Why does my laptop give me a warning saying that firefox is using too much memory and to restart firefox to be more efficient? I just bought this laptop so I know it has the power to run what I need it to.