Progress of Zipping of folder on ProgressMonitor??

Hi all friends,
I am facing problem with showing the progress of zipping of folder for that Iam using ProgressMonitor.I am really confused what will be the code for that I have tried with my below codes but couldn't slove my problem.My below codes zipping folder successfully only problem with showing the progress of zipping on ProgressMonitor.Can any one please rectify me where iam wrong.
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.io.*;
import javax.swing.*;
import javax.swing.event.*;
import java.util.zip.*;
public class ZipUtility1
{     ZipOutputStream cpZipOutputStream = null;
        String strSource = "";
        String strTarget = "";
        String strSubstring = "";
public static void main(String[] args) {
            if(     args == null || args.length < 2) {
                System.out.println("Usage: java ZipUtility <directory or file to be zipped> <name of zip file to be created>");
                return;          
            ZipUtility1 udZipUtility = new ZipUtility1();
            udZipUtility.strSource = args[0];
            udZipUtility.strTarget = args[1];
            udZipUtility.zip();     
private void zip(){
            try     {
                File cpFile = new File (strSource);
                if (!cpFile.isFile() && !cpFile.isDirectory() ){
                System.out.println("\nSource file/directory Not Found!");
                return;
                if  (cpFile.isDirectory()) {
                    strSubstring = strSource;
                } else {
                    strSubstring = "";
                cpZipOutputStream = new ZipOutputStream(new                                     FileOutputStream(strTarget));
                cpZipOutputStream.setLevel(9);
                zipFiles(cpFile,null);
                cpZipOutputStream.finish();
                cpZipOutputStream.close();
              JOptionPane.showMessageDialog( null, "ZIPING COMPLETE");       
System.out.println("\n Finished creating zip file " + strTarget + " from source" + strSource);
            }catch (Exception e){
                e.printStackTrace();
//Method of Zipping
private void  zipFiles(File cpFile,Component parentComponent) {
         int size=(int)cpFile.length();
//ProgressMonitor intialization
         ProgressMonitor monitor = new ProgressMonitor(parentComponent,"Packing " + strSource + "...", "", 0,size);                       
            monitor.setMillisToDecideToPopup(0);
            monitor.setMillisToPopup(0);
if (cpFile.isDirectory()) {               
                File fList[] = cpFile.listFiles();                                   
                for (int i=0; i< fList.length; i++){                                        
                      zipFiles(fList,null);
else {
try {     
String strAbsPath = cpFile.getAbsolutePath();
String strZipEntryName ="";     
if (!strSubstring.equals("") ){
strZipEntryName = strAbsPath.substring(strSource.length()+1,strAbsPath.length());
} else {
strZipEntryName = cpFile.getName();
byte[] buf = new byte[16384];
FileInputStream cpFileInputStream = new FileInputStream (cpFile) ;      
ZipEntry cpZipEntry = new ZipEntry(strZipEntryName);
cpZipOutputStream.putNextEntry(cpZipEntry );
//ProgressMonitor setNote
monitor.setNote(cpZipEntry.getName());
int len;
int count=0;
while ((len = cpFileInputStream.read(buf)) > 0)
cpZipOutputStream.write(buf, 0, len);
count += len;
monitor.setProgress(count); //ProgressMonitor setProgress
cpZipOutputStream.closeEntry() ;
} catch (Exception e) {     
e.printStackTrace();
}//End of Zipping Method
}//End of class
Regards
Bikash

Don't you think that the ProgressMonitor needs to run on a separate thread than your Zip utility. This thread would query results from the thread running Zip utility and repaint.

Similar Messages

  • I am trying to send minutes of a meeting to pc users by clicking on export and choosing the word option.  Recipients are unable to open them saying they came as a ZIP compressed folder.  No idea what that is or how to correct the problem.  Help!

    I am trying to send minutes of a meeting created in Pages to pc users by clicking on export then word.  Recipients are telling me they cannot open the minutes which have come as a ZIP compressed folder.  I have no idea what this is or how to fix the problem.  Help?!

    A pc user can open a .zip file by double clicking it.
    If that does not work, you can convert the document to a .pdf by doing the following.
    With the document active, type commannd + P  (the print command).
    In the next screen, on the bottom left, click on PDF, and in the drop down select Save as pdf...
    You will be asked where the .pdf should be saved - the desktop is the easiest.
    Now when you want to send the minutes, you have them as a .pdf file. Anyone with Adobe Acrobat Reder can open this.

  • How to zip the folder in application server?

    how to zip the folder in application server?

    You can use
    open dataset with filter
    link:[http://help.sap.com/abapdocu_70/en/ABAPOPEN_DATASET_OS_ADDITION.htm#!ABAP_ADDITION_2@2@]

  • Zipping a Folder

    Dear Friend,
    I am using the below program in my project to zip the folder. But the process take too much time than normal when the file size is 400MB and above. Here is my program.
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    import javax.swing.JOptionPane;
    public class FolderZipper {
         int zipsuc = 0;
         public FolderZipper(){}
         public int zipFolder(String srcFolder, String destZipFile) throws Exception
    //System.out.println(srcFolder);
    //System.out.println("\n"+destZipFile);
              ZipOutputStream zip = null;
              FileOutputStream fileWriter = null;
              fileWriter = new FileOutputStream(destZipFile);
              zip = new ZipOutputStream(fileWriter);
              zipsuc = addFolderToZip("", srcFolder, zip);
              zip.flush();
              zip.close();
              fileWriter.close();
              return zipsuc;
         private int addFileToZip(String path, String srcFile, ZipOutputStream zip) throws Exception
              int filesuc=0;
              try
                   File folder = new File(srcFile);
                   if (folder.isDirectory())
                        filesuc=addFolderToZip(path, srcFile, zip);
                   else
                        byte[] buf = new byte[1024];
                        int len;
                        //Time stamp purpose starts
                        //ry entry = new ZipEntry(srcFile);
                        File elementFile = new File (srcFile);
                        ZipEntry entry = new ZipEntry(path + "/" + elementFile.getName());
                        long timestamp = elementFile.lastModified();
                        entry.setTime(timestamp);
                        //Time Stamp ends
                        FileInputStream in = new FileInputStream(srcFile);
                        zip.putNextEntry(entry);
                        //zip.putNextEntry(new ZipEntry(path + "/" + folder.getName()));
                        while ((len = in.read(buf)) > 0)
                             zip.write(buf, 0, len);
                        in.close();
              catch (Exception file)
                   JOptionPane.showMessageDialog(null, "Compress Error: Not able to add the file "+srcFile+" to the zip file!!!", "Compressing",0);
                   return 1;
              return filesuc;
         private int addFolderToZip(String path, String srcFolder, ZipOutputStream zip) throws Exception
              int folzip=0;
              try
                   File folder = new File(srcFolder);
                   for (String fileName : folder.list())
                        if (path.equals(""))
                             folzip=addFileToZip(folder.getName(), srcFolder + "/" + fileName, zip);
                        else
                             folzip=addFileToZip(path + "/" + folder.getName(), srcFolder + "/" + fileName, zip);
              catch (Exception zipe)
                   JOptionPane.showMessageDialog(null, "Compress Error: Not able to add the folder "+srcFolder+" to the zip file!!!", "Compressing",0);
                   return 1;
              return folzip;
    To speed up the process, i have increased the buffer size to 32768 (I expect Array out of bound exception) and it worked well. Theoretically, the byte size is not more than 1024 but i my case it is 32768.
    Please let me know what i did is wrong or Correct?
    Also, note i did the same to copying the file. That too worked well.
    Thanks for help!!!
    Eswar

    Dear Friend,
    I am using the below program in my project to zip the folder. But the process take too much time than normal when the file size is 400MB and above. Here is my program.
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    import javax.swing.JOptionPane;
    public class FolderZipper {
    int zipsuc = 0;
    public FolderZipper(){}
    public int zipFolder(String srcFolder, String destZipFile) throws Exception
    //System.out.println(srcFolder);
    //System.out.println("\n"destZipFile);
    ZipOutputStream zip = null;
    FileOutputStream fileWriter = null;
    fileWriter = new FileOutputStream(destZipFile);
    zip = new ZipOutputStream(fileWriter);
    zipsuc = addFolderToZip("", srcFolder, zip);
    zip.flush();
    zip.close();
    fileWriter.close();
    return zipsuc;
    private int addFileToZip(String path, String srcFile, ZipOutputStream zip) throws Exception
    int filesuc=0;
    try
    File folder = new File(srcFile);
    if (folder.isDirectory())
    filesuc=addFolderToZip(path, srcFile, zip);
    else
    byte[] buf = new byte[1024];
    int len;
    //Time stamp purpose starts
    //ry entry = new ZipEntry(srcFile);
    File elementFile = new File (srcFile);
    ZipEntry entry = new ZipEntry(path "/" elementFile.getName());
    long timestamp = elementFile.lastModified();
    entry.setTime(timestamp);
    //Time Stamp ends
    FileInputStream in = new FileInputStream(srcFile);
    zip.putNextEntry(entry);
    //zip.putNextEntry(new ZipEntry(path "/" folder.getName()));
    while ((len = in.read(buf)) > 0)
    zip.write(buf, 0, len);
    in.close();
    catch (Exception file)
    JOptionPane.showMessageDialog(null, "Compress Error: Not able to add the file "+srcFile" to the zip file!!!", "Compressing",0);
    return 1;
    return filesuc;
    private int addFolderToZip(String path, String srcFolder, ZipOutputStream zip) throws Exception
    int folzip=0;
    try
    File folder = new File(srcFolder);
    for (String fileName : folder.list())
    if (path.equals(""))
    folzip=addFileToZip(folder.getName(), srcFolder "/" fileName, zip);
    else
    folzip=addFileToZip(path "/" folder.getName(), srcFolder "/" fileName, zip);
    catch (Exception zipe)
    JOptionPane.showMessageDialog(null, "Compress Error: Not able to add the folder "srcFolder" to the zip file!!!", "Compressing",0);
    return 1;
    return folzip;
    }To speed up the process, i have increased the buffer size to 32768 (I expect Array out of bound exception) and it worked well. Theoretically, the byte size is not more than 1024 but i my case it is 32768.
    Please let me know what i did is wrong or Correct?
    Also, note i did the same to copying the file. That too worked well.
    Thanks for help!!!
    Eswar

  • Zipping a Folder as same as what winzip do,Please help

    Hi
    I am using java.util.zip ,in order to zip a folder which contains some files.I could able to successfully zip a folder.But it is not same as what winzip does(correctly).Why i am asking is while doing encryption my zipfile size becomes less compare to original zipfile size.But everything works fine when i zip the folder using winzip.It is not working when i zip the folder using the java code .
    If any one have a java code for zipping a folder(which contains files) ,as same as what winzip does(exactly) ,please send to this id : [email protected]
    Please help me,

    Size will be smaller when we do encryption.Right Now we will leave that one.
    Explanation : What i am saying is,consider you have folder with 4 files.When you zip the folder using winzip.You will have central dir size as 5(ie,i think it is including the folder also,(4 files + folder),i not sure.
    Now you do the same process using java code,Now you will have the central dir as 4(ie,it is not including the folder )
    If compare both the details of the zip files,you will get an idea of what i am saying.
    If you check ,you will get the same error.Try this code
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.OutputStream;
    import java.util.zip.*;
    public class Writetozip {
         public static void main(String[] args) {
              String file ="E:\\SampleZip";          
              String destfold ="E:\\SampleZip.zip";                                                            
              Writetozip.zipFolder(file,destfold);                                   
         static public void zipFolder(String file, String destZipFile) {
              ZipOutputStream zip = null;          
              FileOutputStream fileWriter = null;
              try {
              fileWriter = new FileOutputStream(destZipFile);                                        
              zip = new ZipOutputStream(fileWriter);                                                       
              catch (Exception ex){               
              ex.printStackTrace();               
              System.exit(0);               
              addFolderToZip(destZipFile, file, zip);                                                                                                              
              try {          
              zip.flush();
              zip.close();
              catch (Exception ex) {          
              ex.printStackTrace();     
         static private void addFolderToZip(String path, String file, ZipOutputStream zip) {
              File folder = new File(file);                         
              String fileListe[] = folder.list();               
              try {
              for (int i=0; i< fileListe.length; i++){                    
                        addToZip(folder.getName(),file+"/"+fileListe,zip) ;                         
              catch (Exception ex) {                    
                   ex.printStackTrace();          
         static private void addToZip(String path, String srcFile, ZipOutputStream zip) {          
              File folder = new File(srcFile);                    
              if (folder.isDirectory()) {          
              addFolderToZip(path, srcFile, zip);                                                            
              else {
              byte[] buf = new byte[1024];                    
              int len;
              try {
              FileInputStream in = new FileInputStream(srcFile);                                        
              zip.putNextEntry(new ZipEntry(path +"/"+ folder.getName()));               
              while ((len = in.read(buf)) > 0) {          
              zip.write(buf, 0, len);
              catch (Exception ex){
              ex.printStackTrace();

  • Zipping a folder with empty and non empty subfolders

    Hello everybody there,
    Right now i am facing the difficulty to zip a folder which is having some empty and non-empty folders within it.
    Can anyone suggest me what to do.
    I want to do it with java.util.zip package

    Hello, Omke.
    I will follow your suggestion and try to request this feature for a future release of Bridge. One thing I thought was that perhaps this is something that could be accomplished with a script. I have seen a few interesting scripts in Adobe's Exchange web page, John Nack's web site and also on Peter Krogh's DAM useful web site. Some of the scripts I have seen on these sites perform tasks that are far more complex (or so they seem) than it would be to simply display the number of images next to each folder.
    Good point about what number to display. My folder hierarchy is quite simple. All I have is a main photos folder and inside this folder I have numerous others, each corresponding to a photo shoot/location. In my specific case the number next to each folder would correspond to the number of images in the folder not counting other files whether hidden or not (things like bridge cache, sidecar files and others would not be included in the number).
    How easy or difficult would it be to find someone experienced enough with Bridge scripting so as to suggest this project ? What would be the best place to post such a suggestion/request ?
    Thank you again for your reply and helpful answer.
    Best regards,
    Joseph

  • Zip  a folder??

    Hi all friends,
    I want to zip a folder not file by using java.util.zip package. My requirement is I have one swing interface on button action event i want to zip a folder by opening Filedialog Box by selecting that folder from my hard disk.Is it possible? If it is not possible then Is there any other way to zip a folder.
    Regards
    Bikash

    yes i have compiled and also run it
    i got the problem
    actually this forum hides the square bracket and deals it as italic
    here's teh modified code
    import java.io.*;
    import java.util.*;
    import java.util.zip.*;
    * JZip can zip and unzip files or directories compressed or not.
    * It can be used as application or as API.
    * @author Gopal Kalsekar, MITL
    public class JZip
         protected String outputName;
         protected Vector inputNames = null;
         protected int compressMethod = ZipEntry.DEFLATED;
         * Constructor
         public JZip()
         * Constructor
         * @param outputName output zip file name or unzip output path
         * @param inNames input files or directories names to zip or unzip
         public JZip(String outputName, Vector inNames)
              this.outputName = outputName;
              this.inputNames = inNames;
         public static void main(String<> args)
              Vector zipFileNames = new Vector();
              Vector listFileNames = new Vector();
              String directoryName = null;
              String outputName = null;
              String inputName = null;
              boolean isZip = true;
              boolean isHelp = false;
              boolean isCompress = true;
              boolean isOption = true;
              for (int i = 0; i < args.length; ++i)
                   if (args<i>.equals("-h") || args<i>.equals("-help"))
                        isHelp = true;
                   else if (args<i>.equals("-d"))
                        isZip = false;
                   else if (args<i>.equals("-o"))
                        if ( i == args.length - 1 )
                             isHelp = true;
                        else
                             directoryName = args<++i>;
                   else if (args<i>.equals("-u"))
                        isCompress = false;
                   else
                        if (isOption)
                             isOption = false;
                             zipFileNames.addElement(args<i>);
                        else
                             if (isZip)
                                  listFileNames.addElement(args<i>);
                             else
                                  zipFileNames.addElement(args<i>);
              if (isZip)
                   if ((zipFileNames.size() != 1) || (listFileNames.size()) == 0)
                        isHelp = true;
              else
                   if (zipFileNames.size() == 0)
                        isHelp = true;
              if (isHelp)
                   System.out.println("Usage: java JZip <-h> <-d> <-u> <-o <outputDirectory>> zipFile fileList\n" +
                   " -h display this list\n" +
                   " -u uncompressed\n" +
                   " -d unzip\n" +
                   " -o <outputDirectory> output the files into the 'outputDirectory' directory\n"+
                   " zipFile zip file name\n" +
                   " fileList the zipped files list");
              else
                   try
                        JZip jZip = null;
                        if (isZip)
                             if (directoryName != null)
                                  if (directoryName.endsWith(File.separator))
                                       outputName = directoryName + (String)zipFileNames.elementAt(0);
                                  else
                                       outputName = directoryName + File.separator + (String)zipFileNames.elementAt(0);
                             else
                                  outputName = (String)zipFileNames.elementAt(0);
                             jZip = new JZip(outputName, listFileNames);
                             if (isCompress)
                                  jZip.zip();
                             else
                                  jZip.zipUncompressed();
                        else
                             if (directoryName != null)
                                  outputName = directoryName;
                             else
                                  outputName = System.getProperty("user.dir");
                             jZip = new JZip(outputName, zipFileNames);
                             jZip.unzip();
                   catch (Exception e)
                        e.printStackTrace();
         * Set zip compress method type
         * @param method set method as ZipEntry.STORED to uncompress or
         * ZipEntry.DEFLATED to compress
         public void setMethod(int method)
              if (method == ZipEntry.STORED || method == ZipEntry.DEFLATED)
                   compressMethod = method;
         * Do unzipping by the instance which has been created by the constructor
         * JZip(String, Vector).
         * @exception IOException if I/O error occurs
         public void unzip() throws IOException
              String inputName = null;
              FileInputStream fis = null;
              for (int i = 0; i < inputNames.size(); ++i)
                   inputName = (String)inputNames.elementAt(i);
                   fis = new FileInputStream(inputName);
                   unzip(fis);
                   fis.close();
         private void unzip(InputStream is) throws IOException
              FileOutputStream fos;
              File file;
              ZipInputStream zis = new ZipInputStream(is);
              ZipEntry zipEntry = null;
              byte<> buffer = new byte<1024>;
              int readCount = 0;
              String outputDirectory;
              outputDirectory = outputName + File.separator + File.separator;          
              outputDirectory.replace('/','\\');
              while ((zipEntry = zis.getNextEntry()) != null)
                   String filename = outputDirectory + zipEntry.getName() + File.separator;
                   String remslash = zipEntry.getName();
                   remslash = remslash.replace('/','\\');
                   File tmpfile = new File(outputDirectory+remslash);     
                   file = new File(tmpfile.getParent());
                   if (!tmpfile.exists())
                        file.mkdirs();
                   if (remslash.trim().indexOf(":") != -1)
                        remslash = remslash.substring(remslash.indexOf("\\",3) + 1);
                   fos = new FileOutputStream(outputDirectory + remslash);
                   while ((readCount = zis.read(buffer)) != -1)
                        fos.write(buffer, 0, readCount);
                   fos.close();
              zis.close();
         * Do unzipping by special output path and input stream.
         * @exception IOException if I/O error occurs
         public void unzip(String outputDir, InputStream is) throws IOException
              this.outputName = outputDir;
              unzip(is);
         * Do zipping by the instance which has been created by the constructor
         * JZip(String, Vector).
         * @exception IOException if I/O error occurs
         public void zip() throws IOException
              File creatFile = new File(outputName);
              creatFile = new File(creatFile.getParent());
              if (!creatFile.exists())
                   creatFile.mkdirs();          
              FileOutputStream fos = new FileOutputStream(outputName);
              zip(fos);
              fos.close();
         } // end of zip()
         private void zip(OutputStream os) throws IOException
              ZipOutputStream zout = new ZipOutputStream(os);
              File file = null;
              String inputName = null;     
              for (int i = 0; i < inputNames.size(); ++i)
                   inputName = (String)inputNames.elementAt(i);
                   file = new File(inputName);
                   if (file.isFile())
                        zipFile(zout, inputName);
                   else if (file.isDirectory())
                        if (!inputName.endsWith(File.separator))
                             inputName = inputName + File.separator;
                        zipDirectory(zout, inputName, file);
              zout.close();
         * Do zipping by special output stream and input files or directories.
         * @exception IOException if I/O error occurs
         public void zip(OutputStream os, Vector inputNames) throws IOException
              this.inputNames = inputNames;
              zip(os);
         private void zipDirectory(ZipOutputStream zos, String directoryPath, File directoryFile) throws IOException
              if (directoryFile.canRead())
                   String<> fileNames = directoryFile.list();
                   File file = null;
                   if (!directoryPath.endsWith(File.separator))
                        directoryPath = directoryPath + File.separator;
                   for (int i = 0; i < fileNames.length; i++)
                        fileNames<i> = directoryPath + fileNames<i>;
                        file = new File(fileNames<i>);
                        if (file.isDirectory())
                             if (!fileNames<i>.endsWith(File.separator))
                                  fileNames<i> = fileNames<i> + File.separator;
                             zipDirectory(zos, fileNames<i>, file);
                        else if (file.canRead())
                             zipFile(zos, fileNames<i>);
                        else
                             throw new IOException("The File '" + fileNames<i> + "' can't be read.");
              else
                   throw new IOException("The directory '" + directoryPath + "' can't be read.");
         private void zipFile(ZipOutputStream zos, String inputFileName) throws IOException
              String originalinputFileName = inputFileName;
              if (inputFileName.trim().indexOf(":") != -1)
                   inputFileName = inputFileName.substring(inputFileName.indexOf("\\",3) + 1);
              FileInputStream fin = new FileInputStream(originalinputFileName.trim());
              int bytes_within_file = fin.available();
              byte<> buffer = new byte<bytes_within_file>;
              int readCount = 0;
              ZipEntry zent = new ZipEntry(inputFileName.trim());
              zos.putNextEntry(zent);
              while ((readCount = fin.read(buffer,0,bytes_within_file)) != -1)
                   zos.write(buffer, 0, readCount);
              fin.close();
              zos.closeEntry();
         * Zip uncompressed
         * @exception IOException if I/O error occurs
         public void zipUncompressed() throws IOException
              compressMethod = ZipEntry.STORED;
              zip();
    just copy this code in a text pad
    and replace '<' with open squarebarcket '['
    and '>' with close square bracket ']'
    wherver it occurs
    hope its clear

  • How To Unzip files from Compress Zip Archive Folder?

    Hi Friends,
    I had compressed my docx files or images files in zip folder last month but unfortunately that folder has corrupted or damaged due to malware infections. But I am not
    sure about that what reason behind of zip file get corrupt and inaccessible. If anyone knows about such tools which repair corrupt zip files quickly then shares with me that software information detail.
    Thanks

    Also, the Microsoft Community/Answers forums might be of help. We cannot move this question there but I got these hits there when I searched on "repair zip":
    http://answers.microsoft.com/en-us/search/search?SearchTerm=repair+zip&CurrentScope.ForumName=&CurrentScope.Filter=&ContentTypeScope=&x=0&y=0
    Or you can ask here (select your OS):
    http://answers.microsoft.com/en-us/windows/forum/files?tab=Threads
    Richard Mueller - MVP Directory Services

  • How to zip a folder containing subfolders with files and download the zip file in silverlght 4

    private void hbtnDownloadReceipt_Click(object sender, RoutedEventArgs e)
               try
                    string Docpath = "ClaimsDetails/" + "20tech" + "/" + PaymentAdviceUNo;
                    string dd = "ClaimsDetails/";
                    Uri uri = new Uri(Application.Current.Host.Source, "/" + Docpath);
                    Uri uri1 = new Uri(Application.Current.Host.Source, "/" + dd);
                    string path = uri.AbsoluteUri.ToString();
                    path1 = uri1.AbsoluteUri.ToString();
                    //HtmlPage.Window.Eval("window.open('" + path + "')");
                catch (Exception ex)
                    ex.Data.Clear();
    1) Here "path" is D:\\TL 24-12-2014 \\OfficeConnect_17_10\\OfficeConnect.Web\\ClaimsDetails\\20tech\\PaymentAdviceUNo.     
    2) In path "PaymentAdviceUNo" is the folder containing subfolders which i want to zip.
    Thanks in Advance.

    Hi,
    You can download a zip file like any files with the Webclient class, look at the details and examples in the msdn documentation for downloading content on demand it even talks about how to download and get a specific file from a zip archive.
    http://msdn.microsoft.com/en-us/library/cc189021(VS.95).aspx
    Besides,  if you want to list the files,you could check articles below:
    http://blogs.msdn.com/b/blemmon/archive/2009/11/25/reading-zip-files-from-silverlight.aspx
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can i zip a folder with use of  webutil

    hi,
    We are using forms 10g and weutil 1.0.6.Is it possilble to zip and extract a folder with use of the webutil
    our requirement is take current day folder, zip that filder and upload that file
    second requirement is extract the uploaded zip file
    if anybody know thanks in advance
    mathew

    most of the zip-tools can be started via parameter. So you have to read the readme's of those tools and start it in the background with the appropriate parameters

  • No progress wheel for Sent folder?

    What would cause there to be no progress wheel for sending mail? On my mom's PowerBook when she sends an email there is no indication that it's working. She has to wait until she hears the sent mail sound to be sure it worked. On my Mail I get a progress wheel. I've checked all her settings and can't figure out what's causing the difference. She's running the latest version of Tiger.

    I just enabled the "store messages on server" selection on my mac mail for the same issue. I wanted my sent items viewable on all computers as I had before. I think it must have changed during the "mobile me" switchover.
    Now that I have made that selection, all my "sent" mail disappeared immediately, but I found it all further down in my Left Column folder area, in a section called " On My Mac" I found another sent messages folder. They all went there from my .mac account, when I selected "store a copy on server" . I have now sent off my first new message from my .mac account, and it shows up as the only "sent" message, on all computers with my account. All the other messages are in the other folder, described above.
    Definitely something changed with the "mobileme" migration and it's not quite right. It's light starting over again.
    But in my case the messages are there, just in a different location.

  • Workflow to zip specific folder also includes all desktop items

    Hello,
    I have built an Automator workflow that selects a specific folder ("Mail") in my user account's Library folder, creates an archive file of that folder on the desktop.
    However, when I unzip the archive file, I find that all items on the desktop also have been included in the zip file.
    What needs to be done to the workflow so that it zips only the selected folder, excluding all of the desktop items from the zip archive file?
    Many thanks in advance

    There's no cut and paste in the Finder on Macs as there is in Windows. You can copy and paste, but most people just drag and drop a file to move it from one place to another.
    In any open or save file dialog window, click the small triangle next to the filename to expand the window and show a mini-Finder with the sidebar, allowing you to easily change the location you're looking at or navigate into subfolders.
    Matt

  • Drag additional files into existing archive (zip/compressed folder)

    Is there a utility that will let me do this? The built-in tools don't seem to provide a way to just drag a new picture, say, on top of an archive and have it be added to the files included in that archive. Help!

    John Tracey wrote:
    Is there a utility that will let me do this? The built-in tools don't seem to provide a way to just drag a new picture, say, on top of an archive and have it be added to the files included in that archive.
    There are numerous 3rd party utilities that will allow you to do that. It isn't a common operation, so that is why Apple keeps things simple and doesn't provide an interface for it.
    You could do it from the command line with:
    zip -u
    or download one of a few dozen 3rd party utilities: http://osx.iusethis.com/search?q=zip

  • Progress at List Folder function with many files in a folder

    I use the List Folder function of LabVIEW and want to see the progress because it takes much time (20 sec) to load all the files in an array.
    How can i do this?
    see ListFolder example.jpg
    Kind regards Ben Arts
    Solved!
    Go to Solution.
    Attachments:
    ListFolder example.jpg ‏6 KB

    Ben Arts wrote:
    I showed a small picture that's all to do the job.
    There are about 3000 files and the folder is a server.
    Well, that would certainly do it, especially since you said it's on a server, hence a network drive.
    In this case i was looking for a progress for the List Folder to use that in a progress indicator for the user.
    Unfortunately, there is no built-in mechanism for this. Perhaps you can organize the files in such a way that you can get a list of them in "chunks", based on some search pattern. Or perhaps you can organize them in folders so that you dynamically populate the subfolders when a user wants to see what's inside.
    Aside: having 3000+ files in a folder is a poor way to orgranize files, especially on a server, as this leads to a massive amount of file I/O and network I/O burden on the server.

  • TS3230 Why aren't Google and Yahoo loading in Safari with Maverics?  After several failed attempts, a "wireless diagnostics" zipped folder appeared on my desktop.  I'm using a macbook pro with OSX 10.9.2

    I updated to Maverics and now yahoo and google do not load in Safari - i get a "connot connect to server" warning.  other websites load just fine. 
    Also, after several attempts to access the aforementioned sites, a zipped file/folder appeared on my desktop titled "WirelessDiagnostics"
    What in the world is going on here?  I attached a screenshot of the zip file.

    Double-click anywhere in the line of text below on this page to select it, then copy it to the Clipboard by pressing the key combination command-C:
    www.google.com
    Launch the Network Utility application.
    Step 1
    Select the Lookup tab and paste into the address field (command-V). Press return. Post the output that appears below – the text, please, not a screenshot.
    Step 2
    Select the Ping tab and do the same. Please enter the same input as you did in Step 1. Don't use the output of Step 1 as input to Step 2.
    Important Note
    Some web browsers and mail clients will automatically convert a domain name such as "www.example.com" to a clickable URL, such as http://www.example.com. That will interfere with the test. If necessary, edit the input in the Network Utility window to remove any added characters.

Maybe you are looking for

  • The data is not saved in one of the LOV field

    Hi all, I have two forms in two different pages, both are pretty much identical, except here and there show/hide some of the field and different LOV values. One of the form is working fine, but other form is giving me trouble. There is an LOV in that

  • Creative HS-980 - microphone problem

    So I've been using this headset for about 0 months now. Everything was fine until 3 days ago. Microphone simply refused to work any longer. Headphones are still working good, but I can't force mic to detect anything. No mater what would I use it in,

  • Oracle 11g on a Domain Controller

    Hi I'm very new to Oracle so all help appreciated. Is it OK to install Oracle 11g od a DC? ANy limits to users etc? And is there an issue making a server a DC AFTER Oracle is installed? Thanks G

  • HT204370 Is it possible to "return" a movie I haven't watched yet & exchange for the HD version?

    I'd like to upgrade a movie I purchased to HD - I haven't watched it yet and I just bought it yesterday, is it possible to "return" the movie and pay extra to download the HD version?

  • Is it bad to partally charge my macbook

    Hello, ive been wondering if its bad to partally charge my macbook, For example: I use my macbook on battery to 80% then get to my charger i charge to 88% and remember i have to go somewhere, is it ok if i unplug it and use it from 88% or should i tr