Zipping unpacked OpenDocument in Windows

Hello,
I try to pack unpacked and modified OpenDocument file (specifically .ods), using the java.util.zip package back into .ods. My code works only in Linux, not Windows.
For zipping, I use this code:
// returns list of all files and dirs
String[] files = listOfFiles( "uncompressedOds\\");
byte[] buf = new byte[1024];
String zipFile = "table.ods";
ZipOutputStream out = new ZipOutputStream(new FileOutputStream(zipFile));
// compress the files
for(int i = 0; i < files.length; i++){
    ZipEntry zipEntry = new ZipEntry(files);
out.putNextEntry(zipEntry);
if(!new File("uncompressedOds" + File.separator + files[i]).isDirectory()){
FileInputStream in = new FileInputStream("uncompressedOds" + File.separator + files[i]);
     int len;
     while((len = in.read(buf)) > 0){
     out.write(buf, 0, len);
     in.close();
out.closeEntry();
out.close();
The problem is, that the zipped ods file cannot be opened with OpenOffice - it displays a message that the file is demaged, and asks whether I want to repair it. After I select to repair the file, it opens and is entirely OK.
In Linux the created ods file is not demaged - that's very strange.
When I unpack the ods file (which my program created) in Windows (using gnu unzip) and pack it back using WinRar - the ods is then OK.
In both WIn and Lin I use Java 6.

Yes -- DBMS_Scheduler can do this with an executable-type job.
Here's a sample for a unix executable.
begin
  dbms_scheduler.create_job(
    job_name            => 'job_scp'     ,
    job_type            => 'EXECUTABLE'  ,
    job_action          => '/usr/bin/scp',
    number_of_arguments => 2             ,
    start_date          => null          ,
    enabled             => false         ,
    auto_drop           => false         );
end;
/

Similar Messages

  • Unzipping Mac .zip files on a Windows PC

    Does anybody know of a Windows program that will decompress Mac .zip (gz) files reliably? I've Tried StuffIt Standard for Windows but it quits every time with a warning, "Engine Error:Internal Error." Sure, I can make .sit files on the Mac and use Stuffit to expand them in Windows, but that's not the solution I'm looking for. If I already have a Mac .zip file on my Windows PC is there any way to open it without using a Mac?
    I've searched these forums but all my searches come up with answers to the opposite question: How do I open Windows .zip files on my Mac?

    A .gz file is not a "Mac Zip file" but a GNU Zip file, which is commonly used on Unix and Linux computers (OS X is a form of Unix).
    You can get a gzip application for Windows here, or Google for something like "gzip for Windows".
    Archives made by the Finder on a Mac are regular zip files (.zip files), just like the ones you would see on Windows.

  • Install Weblogic 12c zip for developement on Windows 7

    I have downloaded wls1211_dev.zip for development purpose (instead of full install using windows installer), for installing on the windows 7 (64 bit). After extracting the zip contents, I set up the environment variables for JAVA_HOME, MW_HOME and JAVA_VENDOR as stated in the readme.txt included in the zip distribution. I also made sure to set the environment variables using 8.3 names (old DOS names) by using dir /x command. Here are the environmental settings:
    E:\WLS12c>echo %JAVA_HOME%
    C:\PROGRA~1\Java\JDK17~1.0_0\bin
    E:\WLS12c>echo %MW_HOME%
    E:\WLS12c
    E:\WLS12c>echo %JAVA_VENDOR%
    Sun
    But every time I run configure.cmd, I get the following error:
    (I checked the permissions on the directory where I have unzipped and it is full control for me (not an administrator user). I tried to run the configure.cmd using administrative user but the same result). I can also navigate to the directories using 8.3 names. I am able to create delete and update files and folder in the target directories as non-administrative user. I have no idea why I should be getting the following errors.
    WebLogic Server 12c (12.1.1.0) Zip Configuration
    MW_HOME: E:\WLS12c
    JAVA_HOME: C:\PROGRA~1\Java\JDK17~1.0_0\bin
    783 jar files are being unpacked.
    Please wait, title bar will show progress ...
    The system cannot find the path specified.
    -- above line repeated I guess 783 times
    "ACLs are being setup for E:\WLS12c Please wait..."
    The system cannot find the path specified.
    The WebLogic Server wasn't found in directory E:\WLS12c\wlserver\server.
    Please edit the setWLSEnv.cmd script so that the WL_HOME
    variable points to the WebLogic installation directory.
    Your environment has not been set.
    The system cannot find the path specified.
    I will appreciate your help in this regard.
    Thanks in advance
    Salman

    Hi,
    This issue usually occurs when you install WebLogic Server using generic jar installer and when launching installation with incorrect JDK version.It may be improper JDK installation or incorrect JAVA HOME setup at OS level.
    To resolve this issue, uninstall current WebLogic installation using generic.jar installer that is referring incorrect JDK and relaunch the installation with correct JDK by setting correct JAVA HOME system variables. Below are steps to be followed to address this issue.
    Un-install WebLogic from your machine.
    If the installer is on a network drive it's recommended to copy the generic installer to your local file system and to a folder with no spaces or strange characters.
    Remove the system variables you've set: JAVA_HOME, JAVA_VENDOR, and remove the %JAVA_HOME%\bin from the path system variable.
    Run the installer as follows:
    Open a command prompt
    Change directory to \JDK_64\bin folder and execute:
    java.exe -jar -Xms1024m server1001_generic.jar
    After the installation is completed you can proceed to safely run the Configuration Wizard (config.cmd)
    Regards,
    Kal

  • Compressed (zipped) Folder - missing in Windows 8

    I see the following file exists in my SendTo folder (C:\Users\Chirag\AppData\Roaming\Microsoft\Windows\SendTo), but cannot see the item in the Send To menu. 
    Compressed (zipped) folder.ZFSendToTarget
    I went through other articles but didn't help on my Windows 8 (not 8.1):
    http://social.technet.microsoft.com/Forums/windows/en-US/aa89bb79-a144-4ac9-9e1a-9ceb743695f7/windows-7-compressed-zipped-folder-is-missing?forum=w7itprogeneral
    Not sure if the file association is missing for .ZFSendToTarget file extension.
    Also, when I tried the following command:  rundll32
    zipfldr.dll,RegisterSendto
    It gave me this error: Error in zipfldr.dll, Missing entry: RegisterSendTo
    Please help!

    Go through the following thread:
    http://answers.microsoft.com/en-us/windows/forum/windows_8-files/cant-create-a-zip-file-in-windows-8/60cdaf93-a7ce-4b5e-9c32-f88a44f3ebde?page=2
    S.Sengupta, Windows Entertainment and Connected Home MVP

  • Zip created through java.util.zip but problem in windows XP compress folder

    Hi friends,
    I am a software developer ,working on java/j2ee.currently i am working in a document management software related to logistics.Here i am facing a problem at the time of open the zip file through windows XP's in built software called "Folder compress".It's creared through java.util.zip.zipoutputstream.but at time of open through xp compress folder software ,it's showing error that "you can't open this file , this file are protected for your computer security" , but when i trying to open it through winzip or winrar, it's not giving any problem.My also specefing the code snippet below :-
    ZipOutputStream zip =  null;
         FileOutputStream fileWriter = null;
              try
                   fileWriter = new FileOutputStream(destZipFile);
                   zip = new ZipOutputStream(fileWriter);
                   //required for XP compress
                   zip.setMethod(ZipOutputStream.DEFLATED);
                zip.setLevel(Deflater.DEFAULT_COMPRESSION); //use default level
              }catch (Exception ex){
                   ex.printStackTrace();
                   System.exit(0);
              addFolderToZip("", srcFolder, zip);
              try
                   zip.flush();
                   zip.close();
                   zip=null;
                   fileWriter.close();
                   fileWriter = null;
              }catch (Exception ex)
                   //ex.printStackTrace();
                   logger.log("net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.ProcessException","Exception in Zip folder processing");
              }I desperately looking for a help regarding this issue , if any body have any solution the please send at this forum.
    Thanks,
    Chiranjit

    this file working file for winzip or winrar there is no problem.i am also sending the whole code of that java file that can help you better.
    Program Name:     EdocRetrieveServiceSLBean.java
    Description:     EdocRetrieveService CMP Bean Class
    Classes:          EdocRetrieveServiceSLBean
    Package:          net.mlog.edoc.ejb.entity
    Modification History
    <CR No>          <Date>               <Modified By>               <Comments>
    Version 1.0     2005.12.01          Sutapa   Ray               Create
    /** The sequence of methods to be called.
       ===============================================================================================================================
       1. mlogOriginDocumentAudit(String argActionDetails,int argDocumentId,int argActionId,String argActionByUserId)
       2. mlogDestinationBatchDownload(Vector TREEDATA,String SessionIDVal,String argUserId)
              a) Start DIR --
              private  String DoFolder(String folderNname)
              b) Create the folder
              private String CreateFolder(String FolderName,String newFolderPath)
              c) Zip the folder
              private void zipFolder(String srcFolder, String destZipFile)
              d) Add folders to zip file
              private void addToZip(String path, String srcFile, ZipOutputStream zip)
              e) Add the srcFolder to the zip stream.
              private void addFolderToZip(String path, String srcFolder, ZipOutputStream zip)
              f) Delete Directory from server
              public boolean deleteDir(File dir) {
       3. mpsDocumentView(String argUserId,Integer[] argSfxFileId)
       4. mlogOriginDocumentView(int argDocumentId,String argUserId)
       5. findDocTypeForDocId(Integer argDocId) throws RemoteException;
    package net.mlog.edoc.ejb.session;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import javax.ejb.CreateException;
    import javax.ejb.ObjectNotFoundException;
    import javax.ejb.FinderException;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.naming.Context;
    import javax.rmi.PortableRemoteObject;
    import java.rmi.RemoteException;
    //import lib for all entity beans
    import net.mlog.edoc.ejb.entity.IDocumentCMP;
    import net.mlog.edoc.ejb.entity.IDocumentCMPHome;
    import net.mlog.edoc.ejb.entity.IDocumentTypeCMP;
    import net.mlog.edoc.ejb.entity.IDocumentTypeCMPHome;
    import net.mlog.edoc.ejb.entity.IDocumentAuditCMP;
    import net.mlog.edoc.ejb.entity.IDocumentAuditCMPHome;
    //import lib for reader class of properties file
    import net.mlog.edoc.ejb.session.PropertiesFileReader;
    //import lib for user Define File class
    import net.mlog.edoc.ejb.Session.EFile;
    //import lib for SFXWebClient
    import net.mlog.edoc.webservice.sfxWeb.ISFXWebClientSLHome;
    import net.mlog.edoc.webservice.sfxWeb.ISFXWebClientSL;
    import java.sql.Date;
    import java.sql.Timestamp;
    import java.text.SimpleDateFormat;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    import java.util.zip.Deflater;
    import java.util.Vector;
    import java.util.Iterator;
    import java.util.Collection;
    import java.util.StringTokenizer;
    import java.util.Enumeration;
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.io.File;
    import java.io.InputStream;
    import java.io.IOException;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    //import lib for NGP Mail
    import javax.jms.Queue;
    import javax.jms.QueueConnectionFactory;
    import javax.jms.QueueConnection;
    import javax.jms.QueueSender;
    import javax.jms.QueueSession;
    import javax.jms.JMSException;
    import weblogic.jms.extensions.WLQueueSession;
    import weblogic.jms.extensions.XMLMessage;
    //import javax.mail.*;
    //import javax.mail.internet.*;
    //import lib for USI
    import com.msl.security.USIException;
    import com.msl.security.USIServerAPI;
    import com.msl.security.UserPolicyData;
    import net.msl.util.logging.MLogger;
    public class EdocRetrieveServiceSLBean implements SessionBean {
      private static final boolean VERBOSE = true;
      private SessionContext ctx;
      public void ejbActivate() {
      public void ejbRemove() {
      public void ejbPassivate() {
      public void setSessionContext(SessionContext ctx) {
        this.ctx = ctx;
      public void ejbCreate () throws CreateException {
      private static final MLogger logger;
      static
         logger = MLogger.getLogger(net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.class.getName(), "net/mlog/edoc/ejb/session/eDocRetrieveServiceMessagesXML");
    //*********************KEEPING AUDITS OF DOCUMENTS BY MLOG ORIGIN PEOPLE*******************************
    * <b>
    * Used for Auditing the user action.
    * </b>
    * This function is called from various functions of eDocController
    * <p>
    * @param  argActionDetails Gives the details of Action in document audit.
    * @param  argDocumentId gives the Document Id in Document Audit.
    * @param  argActionId Action Id in Document Audit.
    * @param  argActionByUserId User Id of the Docment Audit action.
    * @return Returns a boolean value. 1 for success, 0 for Failure.
    public boolean mlogOriginDocumentAudit(String argActionDetails,int argDocumentId,int argActionId,String argActionByUserId) throws RemoteException
         //NGP/JDK Logging
         boolean flag=false;
    try{
         //getting context of the server
         InitialContext documentAuditCMPInitialContext=getInitialContext();
         Object objDocumentAuditCMPRef=null;
         try{
              objDocumentAuditCMPRef=documentAuditCMPInitialContext.lookup("DocumentAuditCMPBeanJNDI");
         catch(Exception e)
              //NGP/JDK Logging if JNDI Not found
              //logger.log(Level.SEVERE, "{0} : JNDI not found : {1}",new Object[] {"MSG002","DocumentAuditCMPBeanJNDI"});
              logger.log("net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.JNDINotFound","DocumentAuditCMPBeanJNDI not found");
         //find the maximum audit id in the Document_Audit table
         //Home interface reference of DocumentAuditCMP EJB
         //IDocumentAuditCMPHome iDocumentAuditCMPHomeRef=(IDocumentAuditCMPHome)PortableRemoteObject.narrow(objDocumentAuditCMPRef,IDocumentAuditCMPHome.class);
         IDocumentAuditCMPHome iDocumentAuditCMPHomeRef=(IDocumentAuditCMPHome)objDocumentAuditCMPRef;
         //Remote interface reference of DocumentAuditCMP EJB
         IDocumentAuditCMP iDocumentAuditCMPCreateRef=iDocumentAuditCMPHomeRef.create(new Timestamp(System.currentTimeMillis()),argActionDetails,argActionByUserId,new Integer(argActionId),new Integer(argDocumentId));
         //set flag to true if Document is audited
         flag=true;
    }//end of try
    catch(Exception expt)
         //logger.finer(expt);
         logger.log("net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.CreateException","Exception in creating Document Audit record");
      return flag;
    //*********************BATCH DOWNLOAD OF DOCUMENTS BY MLOG ORIGIN PEOPLE*******************************
    * <b>
    * Used for Validating the documents.
    * </b>
    * This function is called from Struts
    * <p>
    * @param  TREEDATA Treeset obtained after search.
    * @param  SessionIDVal gives the Session Value Id.
    * @return Returns a boolean value. 1 for success, 0 for Failure.
    public byte[] mlogDestinationBatchDownload(Vector TREEDATA,String SessionIDVal,String argUserId) throws RemoteException
         //NGP/JDK Logging
         /*FileHandler handler = null;
        Logger logger=null;
         try
           PropertiesFileReader propertiesFileReaderRef=new  PropertiesFileReader();
            String logFile=propertiesFileReaderRef.getProperties("/edoc.properties","EDOC_LOG");
           handler = new FileHandler("eDoc.log",0,1, true);
           logger = Logger.getLogger("ErrorMsg");
           logger.addHandler(handler);
           logger.setLevel(Level.ALL);
        }catch(Exception excp)
             NGP/JDK Logging warning
             logger.log(Level.WARNING, "{0} : Unable to find Resource Bundle File : {1}",new Object[] {"MSG001","ErrorMsg"});
         //Remote interface reference of SFXWebClientSL
         ISFXWebClientSL iSFXWebClientSLRef=null;
         //Home interface reference of SFXWebClientSL
         ISFXWebClientSLHome iSFXWebClientSLHomeRef=null;
         Vector filePath=new Vector();
         byte[] fileContent=null;
         String eDocRoot="";
         String eDocPathMain="";
         String eDocPath="";
         File tempRootFileforDelete = null;
         if (TREEDATA.capacity() != 0 )
              String BLNODirPath="";
              String PONODirPath="";
              String SONODirPath="";
              // added for doc type level--2005.11.27--samar
              String docTypeDirPath="";
              String filepath="";
              try
                 PropertiesFileReader propertiesFileReaderRef=new  PropertiesFileReader();
                 filepath=propertiesFileReaderRef.getProperties("/edoc.properties","TEMP_FILE_DIR");
                 logger.finer("File Path:" +filepath);
              }catch(Exception excp)
                   excp.printStackTrace();
                   logger.log("net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.IOException","TEMP_FILE_DIR property (edoc.properties) not found");
              eDocRoot=CreateFolder("eDocTemp",filepath+File.separator);
              // added for top level--2005.12.02--samar
              //eDocRoot=CreateFolder("eDocTemp",System.getProperty("user.home")+File.separator);
              //eDocPath=CreateFolder(SessionIDVal,eDocRoot+File.separator);
              Enumeration TREEDATAEn = TREEDATA.elements();               //Setting The Tree Folder
              String   BLNO="";
              String   PONO="";
              String   SONO="";
              String   DNO ="";
              while(TREEDATAEn.hasMoreElements())
                   StringTokenizer st = new StringTokenizer((TREEDATAEn.nextElement()).toString(),"_");
                   while (st.hasMoreTokens()) // Extract All the Fields Of Every Vector Element
                        BLNO = st.nextToken();          // CSBWNO
                        PONO = st.nextToken();         // PONO
                        SONO = st.nextToken();        // SONO
                        DNO = st.nextToken();          // DNO
                        eDocPathMain=CreateFolder(SessionIDVal,eDocRoot+File.separator);
                        eDocPath=CreateFolder("eDoc",eDocPathMain+File.separator);
                        BLNODirPath = CreateFolder(BLNO,eDocPath+File.separator);
                        PONODirPath = CreateFolder(PONO,BLNODirPath+File.separator);
                        SONODirPath = CreateFolder(SONO,PONODirPath+File.separator);
                        // added for doc type level--2005.11.27--samar
                        docTypeDirPath=CreateFolder(findDocTypeForDocId(new Integer(DNO)),SONODirPath+File.separator);
                        File tempRootFile=new File(eDocRoot);
                        tempRootFile.canWrite();
                        filePath.add(tempRootFile.getParent());
                        tempRootFileforDelete = tempRootFile;
                        //File tempeDocPathMainFile=new File(eDocPathMain);
                        //filePath.add(tempeDocPathMainFile.getParent());
                        //2005-12-01::code change for top level directory deletion
                        //File tempFile=new File(eDocPath);//BLNODirPath);
                        //filePath.add(tempFile.getParent());
                        filePath.add(eDocPathMain);
                        filePath.add(eDocPath);
                        filePath.add(BLNODirPath);
                        filePath.add(PONODirPath);
                        filePath.add(SONODirPath);
                        // added for doc type level--2005.11.27--samar
                        filePath.add(docTypeDirPath);
                        /* Access The Data from DataBase Temp Storage with Document Id And Store In This SO Folder */
                        /*Long Raw*/
                        try
                             InitialContext initialContext=new InitialContext();
                             int sfxid=0;
                             /*DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
                             OraclePooledConnection pc = new OraclePooledConnection("jdbc:oracle:thin:hr/hr@essoraclesvr:1521:essorcl","edoc","edoc");
                             Connection con=new DBCon().Connect();//pc.getConnection();
                             PreparedStatement pstm=con.prepareStatement("select SFX_FILE_ID from DOCUMENT where DOCUMENT_ID=?");
                             //getting context of the server
                             InitialContext documentCMPInitialContext=getInitialContext();
                             Object objDocumentCMPRef=null;
                             try{
                                  objDocumentCMPRef=documentCMPInitialContext.lookup("DocumentCMPBeanJNDI");
                             catch(Exception e)
                                   //logger.log(Level.SEVERE, "{0} : JNDI not found : {1}",new Object[] {"MSG002","DocumentCMPBeanJNDI"});
                                   logger.log("net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.JNDINotFound","DocumentCMPBeanJNDI not found");
                             //Home interface reference of DocumentCMP EJB
                             //IDocumentCMPHome iDocumentCMPHomeRef=(IDocumentCMPHome)PortableRemoteObject.narrow(objDocumentCMPRef,IDocumentCMPHome.class);
                             IDocumentCMPHome iDocumentCMPHomeRef=(IDocumentCMPHome)objDocumentCMPRef;
                             IDocumentCMP documentCMPRef=null;
                             //Remote interface reference of DocumentCMP EJB
                             try{
                                  documentCMPRef=iDocumentCMPHomeRef.findByPrimaryKey(new Integer(DNO));
                             catch(Exception e)
                                  logger.log("net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.ObjectNotFound","Document Id not found");
                             /*pstm.setInt(1,Integer.parseInt(DNO));
                             ResultSet rs1=pstm.executeQuery();
                             if(rs1.next()){
                             sfxid=rs1.getInt(1);
                             sfxid=documentCMPRef.getSfxFileId().intValue();
                             logger.finer("sfxid==="+sfxid);
                             String strFile=documentCMPRef.getDocumentName().toString();
                             //SFX lookup
                             //InitialContext initialContext=new InitialContext();
                             Object sfxWebClient=null;
                             try{
                                    sfxWebClient=initialContext.lookup("SFXWebClientJNDI");
                             catch(Exception e)
                                  //NGP/JDK logging if JNDI not found
                                  //logger.log(Level.SEVERE, "{0} : JNDI not found : {1}",new Object[] {"MSG002","SFXWebClientJNDI"});
                                  logger.log("net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.JNDINotFound","SFXWebClientJNDI not found");
                             iSFXWebClientSLHomeRef=(ISFXWebClientSLHome)PortableRemoteObject.narrow(sfxWebClient,ISFXWebClientSLHome.class);
                             iSFXWebClientSLRef=iSFXWebClientSLHomeRef.create();//SFXWebClient reference creation
                             if(iSFXWebClientSLRef!=null)
                                  //logger.finer("ffffffff---");
                                  int arrSFXFileId[]=new int[1];
                                  arrSFXFileId[0]=sfxid;
                                  Object objEFile[]=iSFXWebClientSLRef.retrieveDocument(argUserId,arrSFXFileId);
                                  if(objEFile.length>0)
                                       byte b[]=(byte[])objEFile[1];
                                       String f=strFile.substring(strFile.lastIndexOf(File.separator)+1,strFile.length());
                                       // changed(instead of SONODirPath now docTypeDirPath) for doc type level--2005.11.27--samar
                                       FileOutputStream fout=new FileOutputStream(docTypeDirPath+File.separator + f);
                                       //logger.finer("SONODirPath+File.separator + f---"+SONODirPath+File.separator + f);
                                       filePath.add(docTypeDirPath+File.separator + f);
                                       int j;
                                       for(j=0;j<b.length;j++)
                                            fout.write(b[j]);
                                       fout.close();
                                       //for auditing the document
                                       //logger.finer("Document download audited");
                                       boolean flagAudit=mlogOriginDocumentAudit("Document has been downloaded",Integer.parseInt(DNO),5,argUserId);
                                       //logger.finer("Audit complete"+flagAudit);
                                       if(logger.isFinerLoggable()) {
                                            logger.finer("Audit complete"+flagAudit);
                             //Delete after finish
                             tempRootFile.delete();
                         }catch(Exception e)
                             //e.printStackTrace();
                             logger.log("net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.ProcessException","Exception in Folder creation processing");
                        /* End Long Raw     */
                      }// end of while hasMoreTokens
               }// end of while hasMoreElements
         }else{ }
         /* Zip */
          try
              zipFolder(eDocPath+File.separator,eDocPath+".zip");
          }catch(Exception excp)
              ////logger.finer(excp.toString());
              logger.log("net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.ProcessException","Exception in Zip processing");
         // send the byte array for the file
         String fileName=eDocPath+".zip";
         try{
                   File file=new File(fileName);
                   InputStream is = new FileInputStream(file);
                   // Get the size of the file
                   long length = file.length();
                   // You cannot create an array using a long type.It needs to be an int type.
                   // Before converting to an int type,check to ensure that file is not larger than Integer.MAX_VALUE.
                   //Kept for future requirement if any
                   if (length > Integer.MAX_VALUE) {
                        // File is too large
                   // Create the byte array to hold the data
                    fileContent = new byte[(int)length];
                   // Read in the bytes
                   int offset = 0;
                   int numRead = 0;
                   while (offset < fileContent.length
                           && (numRead=is.read(fileContent, offset, fileContent.length-offset)) >= 0) {
                        offset += numRead;
                   // Ensure all the bytes have been read in
                   if (offset < fileContent.length) {
                        throw new IOException("Could not completely read file "+file.getName());
                   // Close the input stream and return bytes
                   is.close();
         }catch(Exception e){
          deleteDir(tempRootFileforDelete);
         //trying for deleting folder and zip file
         File file=new File(fileName);
         if(file.exists())
                 file.delete();
                 //logger.finer("File Deleted successfully");
         if(file.exists()){
                 //logger.finer("File Not Deleted ");
         /* File FileToDelete = new File(eDocPath+".zip");
         boolean  DelStatus1 = deleteDir(FileToDelete);
          //logger.finer("Deletion 1:"+DelStatus1 );
          File FolderToDelete = new File(eDocPath);
         boolean  DelStatus2 = deleteDir(FolderToDelete);
          //logger.finer("Deletion 2:"+DelStatus2);
          for(int index=filePath.size()-1;index>=0;index--)
               File delFile=new File(filePath.elementAt(index).toString());
               //logger.finer(delFile.getAbsolutePath());
               if(delFile.exists())
                    //logger.finer("Before delete---123");
                    //logger.finer("File Deleted========>"+delFile.delete());
                    //logger.finer("After delete---123");
                    //logger.finer(delFile.getAbsolutePath()+"-----------"+delFile.exists());
          return fileContent;
    /* ***************************Start DIR *********************/
    private  String DoFolder(String folderNname)
         File f;
         f = new File(folderNname);
         f.mkdir();                                                   // Create The Folder
       //f.deleteOnExit();                                  //R n D to Delete The zip folders only  */
         return(folderNname+File.separator);
    //to create the folder
    private String CreateFolder(String FolderName,String newFolderPath)
              String NewDir ="";
              NewDir=newFolderPath + FolderName;
              newFolderPath=DoFolder(NewDir);
              return(NewDir);
    //To zip the folder
    private void zipFolder(String srcFolder, String destZipFile)
         ZipOutputStream zip =  null;
         FileOutputStream fileWriter = null;
              try
                   fileWriter = new FileOutputStream(destZipFile);
                   zip = new ZipOutputStream(fileWriter);
                   //required for XP compress
                   zip.setMethod(ZipOutputStream.DEFLATED);
                zip.setLevel(Deflater.DEFAULT_COMPRESSION); //use default level
              }catch (Exception ex){
                   ex.printStackTrace();
                   System.exit(0);
              addFolderToZip("", srcFolder, zip);
              try
                   zip.flush();
                   zip.close();
                   zip=null;
                   fileWriter.close();
                   fileWriter = null;
              }catch (Exception ex)
                   //ex.printStackTrace();
                   logger.log("net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.ProcessException","Exception in Zip folder processing");
         //     File f2= new File(destZipFile);
    *  Write the content of srcFile in a new ZipEntry, named path+srcFile,of the zip stream
    *  The result is that the srcFile will be in the path folder in the generated archive.
    *  @param path          String, the relative path with the root archive.
    *  @param srcFile     String, the absolute path of the file to add
    *  @param zip          ZipOutputStram, the stream to use to write the given file.
    //the folders are added to zip file
    private void addToZip(String path, String srcFile, ZipOutputStream zip)
         File folder = new File(srcFile);
         //folder.deleteOnExit();
         if (folder.isDirectory()) {
              addFolderToZip(path, srcFile, zip);
         else {
              //Transfer bytes from in to out
              byte[] buf = new byte[1024];
              int len;
              FileInputStream in = null;
              try {
                   in = new FileInputStream(srcFile);
                   // void putNextEntry(ZipEntry e) Begins writing a new ZIP file entry
                   // and positions the stream to the start of the entry data.
                   zip.putNextEntry(new ZipEntry(path +File.separator+ folder.getName()));
                   while ((len = in.read(buf)) > 0)
                        zip.write(buf, 0, len);
              }catch (Exception ex){
                   ex.printStackTrace();
                   logger.log("net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.ProcessException","Exception in Adding to Zip Folder");
              }finally{
                   try
                        //2005-12-01::file pointer close
                        in.close();
                   }catch(Exception e){
                        e.printStackTrace();
                        logger.log("net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.ProcessException","Exception in Adding to Zip Folder");
         folder.delete(); //we addedd for DELETE
    * add the srcFolder to the zip stream.
    * @param path          String, the relatif path with the root archive.
    * @param srcFile     String, the absolute path of the file to add
    * @param zip          ZipOutputStram, the stream to use to write the given file.
    private void addFolderToZip(String path, String srcFolder, ZipOutputStream zip)
         File folder = new File(srcFolder);
         folder.canWrite();
         //folder.deleteOnExit();
         String fileListe[] = folder.list();
         try
              int i = 0;
              while (true)
              addToZip(path+File.separator+ folder.getName(), srcFolder+File.separator+fileListe, zip);
              i++;
         }catch (Exception ex)
         logger.log("net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.ProcessException","Exception in Naming after adding to Zip Folder");
    /* $$$$$$$$$$$$$$$$$           End Zipping               $$$$$$$$$$$$$$$ */
    /****************Start Of Deleting Directory from server***********/
    public boolean deleteDir(File dir) {
         // to see if this directory is actually a symbolic link to a directory,
         // we want to get its canonical path
         //- that is, we follow the link to the file it's actually linked to
         File candir;
         try {
              candir = dir.getCanonicalFile();
         } catch (IOException e) {
              return false;
         // a symbolic link has a different canonical path than its actual path,
         // unless it's a link to itself
         if (!candir.equals(dir.getAbsoluteFile())) {
              //this file is a symbolic link, and there's no reason for us to follow it,
              //because then we might be deleting something outside of the directory we were told to delete
              return false;
         // now we go through all of the files and subdirectories in the directory and delete them one by one
         File[] files = candir.listFiles();
         if (files != null) {
         for (int i = 0; i < files.length; i++) {
              File file = files[i];
              //file read only set false
              //in case this directory is actually a symbolic link, or it's empty,
              //we want to try to delete the link before we try anything
              boolean deleted = file.delete();
              if (!deleted) {
                   // deleting the file failed, so maybe it's a non-empty directory
                   if (file.isDirectory()) deleteDir(file);
                   // otherwise, there's nothing else we can do
         // now that we tried to clear the directory out, we can try to delete it again
         return dir.delete();
    /************End Of Deleting Directory *********************/
    private InitialContext getInitialContext() throws NamingException {
    try {
    return new InitialContext();
    } catch (NamingException ne) {
    //logger.finer("Please make sure that the server is running.");
    throw ne;
    //*****************************WEB SERVICE FILE RETRIEVE IMPLEMENTATION FOR MPS PEOPLE*************************************************
    * <b>
    * Used for Retrieval of a document.
    * </b>
    * This function is called from retrieveDocument function of MPStoEdocWebServiceSLBean.
    * <p>
    * @param argUserId User Id of the user who wants to retrieve the document
    * @param argSfxFileId[] Sfx File Id which gives the reference number of the document(s) in the SFX database.
    * @return Returns a one dimentional Object array containing a series of file name and file content of the retrieved documents.
    public Object[] mpsDocumentView(String argUserId,Integer[] argSfxFileId) throws RemoteException
         //NGP/JDK logging
         logger.finer("mpsDocumentView called--");
         try{
              argUserId=argUserId.toUpperCase();
         catch(Exception e)
              e.printStackTrace();
         logger.finer("mpsDocumentView argSfxFileId[0]--"+argSfxFileId[0]);
         Object[] searchResult=null;
         /*FileHandler handler = null;
    Logger logger=null;
         int finalIndex=0;
         try
    //PropertiesFileReader propertiesFileReaderRef=new PropertiesFileReader();
         //String logFile=propertiesFileReaderRef.getProperties("/edoc.properties","EDOC_LOG");
    //handler = new FileHandler("eDoc.log",0,1, true);
    //logger = Logger.getLogger("ErrorMsg");
    //logger.addHandler(handler);
    //logger.setLevel(Level.ALL);
    }catch(Exception excp)
         //NGP/JDK Logging warning
         //logger.log(Level.WARNING, "{0} : Unable to find Resource Bundle File : {1}",new Object[] {"MSG001","ErrorMsg"});
         logger.log("net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.JNDINotFound","PurchaseOrderCMPBeanJNDI not found");
         Object objDocumentFile[]=null;
         ISFXWebClientSLHome iSFXWebClientSLHomeRef=null;
         ISFXWebClientSL iSFXWebClientSLRef=null;
         try{
              //Locating SFX WEB CLIENT SESSION BEAN
              InitialContext initialContext=new InitialContext();
              Object sfxWebClient=null;
              try{
                   sfxWebClient=initialContext.lookup("SFXWebClientJNDI");
              catch(Exception e)
                   //NGP/JDK Logging if JNDI not found
                   //logger.log(Level.SEVERE, "{0} : JNDI not found : {1}",new Object[] {"MSG002","SFXWebClientJNDI"});
                   logger.log("net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.JNDINotFound","SFXWebClientJNDI not found");
              iSFXWebClientSLHomeRef=(ISFXWebClientSLHome)PortableRemoteObject.narrow(sfxWebClient,ISFXWebClientSLHome.class);
              //creation of SFX we client
              iSFXWebClientSLRef=iSFXWebClientSLHomeRef.create();
              int arrSFXFileId[]=new int[argSfxFileId.length];
              logger.finer("SFXWebClient created----");
              //holds the sequence of SFX file id in the array
              //EFile file=new EFile();
              //getting context of the server
              InitialContext documentCMPInitialContext=getInitialContext();
         Object objDocumentCMPRef=null;
         int docId=0;
         try{
              objDocumentCMPRef=documentCMPInitialContext.lookup("DocumentCMPBeanJNDI");
         catch(Exception e)
                   //NGP/JDK Logging if JNDI not found
                   //logger.log(Level.SEVERE, "{0} : JNDI not found : {1}",new Object[] {"MSG002","DocumentCMPBeanJNDI"});
                   logger.log("net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.JNDINotFound","DocumentCMPBeanJNDI not found");
         //Home interface reference of DocumentCMP EJB
         //IDocumentCMPHome iDocumentCMPHomeRef=(IDocumentCMPHome)PortableRemoteObject.narrow(objDocumentCMPRef,IDocumentCMPHome.class);
              IDocumentCMPHome iDocumentCMPHomeRef=(IDocumentCMPHome)objDocumentCMPRef;
         //find the document id in the Document table from the SFx File Id
              for(int index=0;index<argSfxFileId.length;index++)
                   arrSFXFileId[index]=argSfxFileId[index].intValue();
                   logger.finer("mpsDocumentView arrSFXFileId[index]--"+arrSFXFileId[index]);
         logger.finer("For Document auditing----");
         //Remote interface reference of DocumentCMP EJB
         IDocumentCMP iDocumentCMPRef=iDocumentCMPHomeRef.findDocIdBySfxId(new Integer(arrSFXFileId[index]));
                   docId=iDocumentCMPRef.getDocumentId().intValue();
                   //for document audit
                   try{
                        boolean flagAudit=mlogOriginDocumentAudit("Document is Viewed",docId,5,argUserId);
                   catch(Exception e)
                        //logger.finer("Document cannot be audited----");
                        logger.log("net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.ProcessException","Exception in audit processing");
              //call the retrieveDocument method for the above array of elements
              //Object[] tempObjDocumentFile=iSFXWebClientSLRef.retrieveDocument(argUserId,arrSFXFileId);
              //EFile file=new EFile();
              //for(int index=0;index<tempObjDocumentFile.length;index++){
              //     file= (EFile) tempObjDocumentFile[index];
              //     objDocumentFile[finalIndex++]=file.getDocFileName();
              //     objDocumentFile[finalIndex++]=file.getDocFileContent();
              objDocumentFile=iSFXWebClientSLRef.retrieveDocument(argUserId,arrSFXFileId);
              //EFile[] efileArray = (EFile[]) = objDocumentFile;
              searchResult = new Object[efileArray.length*2];
              for (int i=0;i<efileArray.length;i=i+2)
                   EFile currentFile = efileArray[i];
                   searchResult[i] = currentFile.getDocFileName();
                   searchResult[i+1] = currentFile.getDocFileContent();
              searchResult=iSFXWebClientSLRef.retrieveDocument(argUserId,arrSFXFileId);
         }//end of try
         catch(Exception expt)
              //logger.finer(expt);
              logger.log("net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.ProcessException","Exception in retrieve from SFX");
         //if exception occurs returns null as per initilisation above
         //logger.finer("mpsDocumentView size--"+objDocumentFile.length);
         return searchResult;
    //**************************** FILE RETRIEVE IMPLEMENTATION FOR MLOG PEOPLE*******************************
    * <b>
    * Used for Retrieval of a document.
    * </b>
    * This function is called from struts.
    * <p>
    * @param argDocumentId Documnet Id which gives the ID of the document in the eDoc database..
    * @param argUserId User Id of the user who wants to retrieve the document
    * @return Returns a one dimentional Object array containing a series of file name and file content of the retrieved documents.
    public Object[] mlogOriginDocumentView(int argDocumentId,String argUserId) throws RemoteException
         //NGP/JDK Logging
         logger.finer("mlogOriginDocumentView called--");
         try{
              argUserId=argUserId.toUpperCase();
         catch(Exception e)
              //e.printStackTrace();
              logger.log("net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.ProcessException","Exception in uppercase");
    //logger.finer("mlogOriginDocumentView-- argDocumentId---"+argDocumentId);
         /*FileHandler handler = null;
    Logger logger=null;
         try
    //PropertiesFileReader propertiesFileReaderRef=new PropertiesFileReader();
         //String logFile=propertiesFileReaderRef.getProperties("/edoc.properties","EDOC_LOG");
    //handler = new FileHandler("eDoc.log",0,1, tr

  • Zip files compatible with windows

    window error when using Mac zip file "too many files"

    If you select a single text file, then right-click on it and select Compress, I would expect this to produce a ZIP file containing just a single file i.e. the text file.
    If however you select a folder then the ZIP file would contain not only the folder, the obvious files in the folder, but may also contain some invisible files like .DS_Store
    Ok, the above is what I expected, I have just been testing this and this is actually what happens. A single file e.g. a text file when made in to a ZIP by right-clicking and selecting compress produces a ZIP file which contains the following
    thetextfile.txt <--- (the text file)
    __MACOSX <--- (an invisible folder)
    __MACOSX/._thetextfile.txt (an invisible file in the invisible folder, this is not the text file itself)
    So, yes it is more than one file in the ZIP file. By the way, you can 'see' what is in a ZIP file by using Terminal.app and typing the following
    zipinfo nameofzip.zip
    You can use Terminal.app also to create a 'clean' ZIP file containing just the text file the command looks like this
    zip nameofzip.zip thetextfile.txt
    Then to check do the zipinfo command again.
    There is also a a commercial tool do simplify doing this, funnily enough it specifically mentions the __MACOSX folder etc. See http://gotoes.org/sales/Zip_Mac_Files_For_PC/

  • Making a .zip doubles files when Windows opens it

    So I just found out that when I make a .zip using the 'compress x items" service and then someone uses winzip to open the file, it duplicates them and creates two folders - one of which is full of duplicate non-files.  What's going on here and how can I fix this so that what I see when I unzip the file is what PC users see?

    actually I don't know.  Someone told me that the second folder was called "meta [something]" and was filled with what looked like duplicates but were unreadable.  I think I read somewhere when looking into this that OS X makes this meta information when compressing files that contain icons and whatnot. 
    BUT, I tried that zip program and it seemed to work, but I haven't been able to check it yet.  Also the file size was about 5 megs larger (which isn't that big of a deal, but I thought interesting to note).

  • Windows Explorer misreads large-file .zip archives

       I just spent about 90 minutes trying to report this problem through
    the normal support channels with no useful result, so, in desperation,
    I'm trying here, in the hope that someone can direct this report to some
    useful place.
       There appears to be a bug in the .zip archive reader used by Windows
    Explorer in Windows 7 (and up, most likely).
       An Info-ZIP Zip user recently reported a problem with an archive
    created using our Zip program.  The archive was valid, but it contained
    a file which was larger than 4GiB.  The complaint was that Windows
    Explorer displayed (and, apparently believed) an absurdly large size
    value for this large-file archive member.  We have since reproduced the
    problem.
       The original .zip archive format includes uncompressed and compressed
    sizes for archive members (files), and these sizes were stored in 32-bit
    fields.  This caused problems for files which are larger than 4GiB (or,
    on some system types, where signed size values were used, 2GiB).  The
    solution to this fundamental limitation was to extend the .zip archive
    format to allow storage of 64-bit member sizes, when necessary.  (PKWARE
    identifies this format extension as "Zip64".)
       The .zip archive format includes a mechanism, the "Extra Field", for
    storing various kinds of metadata which had no place in the normal
    archive file headers.  Examples include OS-specific file-attribute data,
    such as Finder info and extended attributes for Apple Macintosh; record
    format, record size, and record type data for VMS/OpenVMS; universal
    file times and/or UID/GID for UNIX(-like) systems; and so on.  The Extra
    Field is where the 64-bit member sizes are stored, when the fixed 32-bit
    size fields are too small.
       An Extra Field has a structure which allows multiple types of extra
    data to be included.  It comprises one or more "Extra Blocks", each of
    which has the following structure:
           Size (bytes) | Description
          --------------+------------
                2       | Type code
                2       | Number of data bytes to follow
            (variable)  | Extra block data
       The problem with the .zip archive reader used by Windows Explorer is
    that it appears to expect the Extra Block which includes the 64-bit
    member sizes (type code = 0x0001) to be the first (or only) Extra Block
    in the Extra Field.  If some other Extra Block appears at the start of
    the Extra Field, then its (non-size) data are being incorrectly
    interpreted as the 64-bit sizes, while the actual 64-bit size data,
    further along in the Extra Field, are ignored.
       Perhaps the .zip archive _writer_ used by Windows Explorer always
    places the Extra Block with the 64-bit sizes in this special location,
    but the .zip specification does not demand any particular order or
    placement of Extra Blocks in the Extra Field, and other programs
    (Info-ZIP Zip, for example) should not be expected to abide by this
    artificial restriction.  For details, see section "4.5 Extensible data
    fields" in the PKWARE APPNOTE:
          http://www.pkware.com/documents/casestudies/APPNOTE.TXT
       A .zip archive reader is expected to consider the Extra Block type
    codes, and interpret accordingly the data which follow.  In particular,
    it's not sufficient to trust that any particular Extra Block will be the
    first one in the Extra Field.  It's generally safe to ignore any Extra
    Block whose type code is not recognized, but it's crucial to scan the
    Extra Field, identify each Extra Block, and handle it according to its
    type.
       Here are some relatively small (about 14MiB each) test archives which
    illustrate the problem:
          http://antinode.info/ftp/info-zip/ms_zip64/test_4g.zip
          http://antinode.info/ftp/info-zip/ms_zip64/test_4g_V.zip
          http://antinode.info/ftp/info-zip/ms_zip64/test_4g_W.zip
       Correct info, from UnZip 6.00 ("unzip -lv"):
    Archive:  test_4g.zip
     Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
    4362076160  Defl:X 14800839 100% 05-01-2014 15:33 6d8d2ece  test_4g.txt
    Archive:  test_4g_V.zip
     Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
    4362076160  Defl:X 14800839 100% 05-01-2014 15:33 6d8d2ece  test_4g.txt
    Archive:  test_4g_W.zip
     Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
    4362076160  Defl:X 14800839 100% 05-01-2014 15:33 6d8d2ece  test_4g.txt
    (In these reports, "Length" is the uncompressed size; "Size" is the
    compressed size.)
       Incorrect info, from (Windows 7) Windows Explorer:
    Archive        Name          Compressed size   Size
    test_4g.zip    test_4g.txt         14,454 KB   562,951,376,907,238 KB
    test_4g_V.zip  test_4g.txt         14,454 KB   8,796,110,221,518 KB
    test_4g_W.zip  test_4g.txt         14,454 KB   1,464,940,363,777 KB
       Faced with these unrealistic sizes, Windows Explorer refuses to
    extract the member file, for lack of (petabytes of) free disk space.
       The archive test_4g.zip has the following Extra Blocks: universal
    time (type = 0x5455) and 64-bit sizes (type = 0x0001).  test_4g_V.zip
    has: PWWARE VMS (type = 0x000c) and 64-bit sizes (type = 0x0001).
    test_4g_W.zip has: NT security descriptor (type = 0x4453), universal
    time (type = 0x5455), and 64-bit sizes (type = 0x0001).  Obviously,
    Info-ZIP UnZip has no trouble correctly finding the 64-bit size info in
    these archives, but Windows Explorer is clearly confused.  (Note that
    "1,464,940,363,777 KB" translates to 0x0005545500000400 (bytes), and
    "0x00055455" looks exactly like the size, "0x0005" and the type code
    "0x5455" for a "UT" universal time Extra Block, which was present in
    that archive.  This is consistent with the hypothesis that the wrong
    data in the Extra Field are being interpreted as the 64-bit size data.)
       Without being able to see the source code involved here, it's hard to
    know exactly what it's doing wrong, but it does appear that the .zip
    reader used by Windows Explorer is using a very (too) simple-minded
    method to extract 64-bit size data from the Extra Field, causing it to
    get bad data from a properly formed archive.
       I suspect that the engineer involved will have little trouble finding
    and fixing the code which parses an Extra Field to extract the 64-bit
    sizes correctly, but if anyone has any questions, we'd be happy to help.
       For the Info-ZIP (http://info-zip.org/) team,
       Steven Schweda

    > We can't get the source (info-zip) program for test.
       I don't know why you would need to, but yes, you can:
          http://www.info-zip.org/
          ftp://ftp.info-zip.org/pub/infozip/src/
    You can also get pre-built executables for Windows:
          ftp://ftp.info-zip.org/pub/infozip/win32/unz600xn.exe
          ftp://ftp.info-zip.org/pub/infozip/win32/zip300xn.zip
    > In addition, since other zip application runs correctly. Since it should
    > be your software itself issue.
       You seem to misunderstand the situation.  The facts are these:
       1.  For your convenience, I've provided three test archives, each of
    which includes a file larger than 4GiB.  These archives are valid.
       2.  Info-ZIP UnZip (version 6.00 or newer) can process these archives
    correctly.  This is consistent with the fact that these archives are
    valid.
       3.  Programs from other vendors can process these archives correctly.
    I've supplied a screenshot showing one of them (7-Zip) doing so, as you
    requested.  This is consistent with the fact that these archives are
    valid.
       4.  Windows Explorer (on Windows 7) cannot process these archives
    correctly, apparently because it misreads the (Zip64) file size data.
    I've supplied a screenshot of Windows Explorer showing the bad file size
    it gets, and the failure that occurs when one tries to use it to extract
    the file from one of these archives, as you requested.  This is
    consistent with the fact that there's a bug in the .zip reader used by
    Windows Explorer.
       Yes, "other zip application runs correctly."  Info-ZIP UnZip runs
    correctly.  Only Windows Explorer does _not_ run correctly.

  • Linking to PDF files in HTMLResources.zip file with Windows 8.1 Viewer

    I have followed the instructions from 'DPS Tips' regarding creating a HTML Resources folder and compressing  the PDF files etc... It works on IOS Viewer but it doesn't work on Windows 8.1 Viewer.
    Is linking to PDF files in HTMLResources.zip file  support for Windows Viewer?
    Thanks

    Hi Bob,
    I do not understand, you're telling me that if I set my default browser to Chrome on Windows 8.1, the Viewer works with, or does the Indesign Folio Preview works?

  • Password Protected ZIP files from Windows

    Hello everyone, I had created ZIP files in my windows PC way back and I have password protected them. Now I copied them to my MAC, and when I try to unzip, it does not ask for a password and gives me an error message.
    I know I can go back to my PC and unzip those files with the password, then zip them and copy them to my MAC, but I don't want to run my PC unless I really have to and I am curious to see if there is a way to have Archive utility to ask for the password.
    Thanks,

    No; click here for more information.
    (29233)

  • Windows ZIP corrupt?

    Hey guys,
    I keep attempting to download and extract 11G r2 express for windows, to no avail. Regardless of the connection or browser used to download , or ZIP client (WinRar, 7zip, Windows 8 unzip), I get a warning saying setup.exe is corrupt during unzip.
    Not a huge issue as I can simply install a linux VM to test things out, but I thought I'd test my product against a Windows database.
    Did some googling and searching on these forums, and I can't seem to find anyone with the issue. Beginning to think I'm going crazy!

    Seems I just had a bad mirror - trying again a few hours later seems got me a working file.

  • How do i send a spreadsheet in numbers to a windows user without it being zipped?

    How do i send a Numbers spreadsheet to a Windows user without it being zipped?

    Hi Michael,
    Windows (Excel spreadsheet app) will not open a Numbers document. In Numbers, Menu > File > Export To > Excel... and then send it.
    It will most likely be zipped (a Numbers document is actually a folder of files that looks like a document).
    If you are swapping spreadsheets backwards and forwards between Numbers and Excel, glitches will build up. Export and import are not perfect, but at least Numbers makes some attempt. Excel makes no attempt. You will be forever fixing those glitches.
    Try Open Office or Libre Office (free) or use Excel for Mac to ensure compatibility.
    Regards,
    Ian.

  • Hard drive replacement with recovery disc problems - Windows Troubleshooter Error 0x8E5E0247

    I have a 2009 Satellite A505 laptop
    64-bit Operating System with Windows 7 Home Premium, 4 gigs of RAM, and Intel Duo CPU, 2.20GHz
    The original Toshiba 500 GB Hard drive finally gave up the ghost and I replaced it yesterday with a WD Scorpio Blue HD Model WDBABC500ANC-NRSN (SATA 8 MB :Mo Cache 5400 RPM)
    Easy, straight forward replacement.  No problems.
    I got out my Recovery Discs which I created using the Toshiba recovery disc utility back in 2009. As I remember, at the time, the process of creating these discs was easy, and it was the first thing I did after registering my computer.
    The process created 5 discs, which the last, number 5, is the Applications and Drivers.  I have done this process before on other computers (Gateway and Toshiba) and it is usually pretty straight forward and problem free.
    Not so this time, and have to wonder about the Toshiba Recovery Discs that were created!  Why aren't these working correctly?
    I followed the normal process to boot the new Hard Disc on the DVD Recovery Disc 1, and everything seemed to work normally.  I followed every "next" prompt, and installed each new Disc 2, and 3 as prompted.
    After Disc 3, it said it was finished, and then went throught the Toshiba unpacking and the Windows installation process with multiple re-starts and Window start ups.  Again, everything seemed normal, except I wondered why I never received a prompt for Dsc 4 which was unused in the recovery process.  Is that normal? 
    During the Toshiba automatic unpacking and installation process, where various drivers were being installed, Windows errors began returning that said something like this, "Windows requires a digitally Signed driver, and the driver is unavailalbe and could not be activated in Windows 7 . Programs relying on them may not work. "  
    The problem drivers included the Realtek RTL8191 SE Wireless Lan 802.11n PCWE, the Richo pcle memory stick, Realtek High Definition Audio, Video Controller, Richo PCLe SD/MMC Host Conroller. and a few others....
    I did not touch the keybroad or intervere in anyway, and let the installation process proceed until everything was installed.  I then went through the first Windows start up process where you set the region, time and create the USER ID, set the adminstrator rights and even got the Toshiba Registration prompt.
    When finished, I noticed that the sound was not working, nor was the Wireless Network Connection, and when I attempted the usual Windows network Trouble Shooting process, it returned a Windows Error which said "A problem is preventing the troubleshooter from starting"  
    I then viewed the error details.  They said...
    Package ID:  Unknown
    Path:           C:\windows\diagnostics\system\networking
    Error Code:  0x8E5E0247
    USER:          mvh-PC\mvh
    Context:      Restricted
    I then went to MS Windows 7 Troubleshooting forum on the internet using another computer. 
    I followed all the 'cmd' processes for "supposedly" solving these problems by running System File Checker [SFC] scan on the computer which was supposed to replace the missing or corrupt files.
    Well, no joy.  The issue presists.
    After some problems accessing the CBS log, I was able to view it, and it provides no useful information as to why the errors where unable to be corrected.  
    I tried following everything on this MS How to Use File Checker document:
    In my CBS file I got a lot of SQM  "Failed to start" and "Failed to read" and "Failed to upload" and CSI "Repair results created"....
    but did not get any "Cannot repair member file" type of messages to use the 'cmd'
    takeown /f Path_And_File_Name function 
    I then started over.  Rebooted the computer again, starting with Recovery Disc 1 and several hours later was back to the same problem.  Geeze
    I have checked all the various Device drivers that are shown as not working in the Device Manager.  I have tried uninstalling them all, and then re-installing them both automatically during Windows 7 start up, and also from the Recovery Disc 5 which had the original drivers.  Nothing works.
    When I clicked on "Connect to the Internet" on the Windows Control Panel, I am returned a prompt that says "Windows did not detect any networking hardware" and so,even with a direct Ethernet connection to my cable modum, I was unable to download any Windows updates or new drivers to see if that fixes anything.
    I am stumped. 
    Any suggestions out there?  I don't want to waste a lot of money paying for more technical help for an aging laptob.  If this is beyond a simple fix, then I think I will just go and buy a new cheap computer from Asus having wasted the ~$70 bucks for the hard drive for this one.  
    It shouldn't be this hard, should it?  
    I have considered buying new recovery discs directlly from Toshiba, but if the process that came with the computer can't create correct discs that work the first time, what promise do I have that another $29.95 won't just be a waste of money too?
    Thanks for any helpful hints about what I may be missing or overlooking.   
    Regards
    Marvin Van Horn
    Solved!
    Go to Solution.

    Jerry...
    I think we can close this one out as 95% solved.  I did get the Intel (R) Rapid Storage Technology loaded after installing the Intel (R) Chipset Software Installation Utility.   The instrustions were not the simpliest for the novice, and it took me a while to figure out if my system was running in RAID or ACHI mode.  I decided that it was ACHI, so could proceed, even though I did NOT find this information in the Device Manager where they said I should have...
    Also, it was a little confusing on the Intel site which file to download.  I first did the zip file, (f6flpy-x64.zip) but could not figure how to execute it or put it on a disc, so downloaded the (iata_enu.exe) and hope it was the right one for a 64 bit system.  
    Anyway, I am now connected via Ethernet cable to my modem, and down loading 126 Windows Updates which should take a while.
    My only other issue, that I am aware of is that I do not seem to have any Wireless Lan software, and even though I have added Lan drivers via the recovery Disc, they do not show up anywhere.. Will have to figure out what is going on here, and why it isn't working...
    Maybe it is related to something in the Device Manager called
    "Other Devices"  Under that I have 4 items not working.  They are listed like this...
           Base System Drive,
           Base System Drive (a duplicate?)  
           Network Controller
           Video Controller.  
    I have tried uninstalling them, and allowing Windows to reinstall, but they still are not activated.  Not sure what this is for, and how to update it, but will search some more on another forum thread for these issues.  Maybe I will try again after all my Windows updates are done and see what happens.  
    Thanks again for your help.  If you have any other insights on the Wireless issue, that would be great.  It is turned on, but in the Windows tray, I only get the Ethenet Icon option, and it does not see or present wireless connection options like before.  I am sure this is something simple.  
    cheers
    mvh

  • Windows 7 64 Bit machine with Instant Client and 32Bit application

    Hello everybody,
    the last days a tried to get a 32Bit application to run on a Windows 7 SP1 64 Bit machine ... unfortunately with no success. The application runs on XP Pro and Vista Pro 32 Bit machines against a 11g RDBMS for years. As a refenence we use SQLTools from sqltools.net. It has nearly the same behaviour like the application, because it is a 32 bit application too.
    First thing was to install a 64 bit environement to verify if the connection is allright.
    - Downloaded instantclient-basic-windows.x64-11.2.0.2.0.zip an instantclient-sqlplus-windows.x64-11.2.0.2.0.zip
    - Unpacked both packages into C:\oracle so that they reside in C:\oracle\instantclient_11_2
    - Made a directory C:\oracle\tnsnames with tnsnames.ora in it, because the app uses it
    - Set the environement variables TNS_ADMIN to point to C:\oracle\tnsnames and added C:\oracle\instantclient_11_2 in front of the path variable
    - Restarted the machine
    - Opened a commnd shell and startet sqlplus user/password@sid
    Everything was allright, I was able to connect to the database as expected
    Second thing was to start SQLTools, but as I feard it quitted with an error message when trying to access oci.dll of the instant client.
    So i decided to switch to a 32 bit environement as a third thing.
    - Downloaded instantclient-basiclite-nt-11.2.0.2.0.zip and instantclient-sqlplus-nt-11.2.0.2.0.zip
    - Deleted the old C:\oracle\instantclient_11_2
    - Unpacked both 32 bit packages into C:\oracle so that they reside in C:\oracle\instantclient_11_2
    - Didn't change anything in the environement, because nothing changed from the view of the system
    - Opened a commnd shell and startet sqlplus user/password@sid
    But now I wasn't able to connect and got the following error
    ORA-28547: connection to server failed, probable Oracle Net admin error
    SQLPlus was able to start now, but when trying to connect to the database I got the same error like when connecting with sqlplus.
    Does anybopdy have an idea how to manage to get a 32 bit application to run on a Windows 7 64 Bit machine?
    Thanks in advance
    My packages:
    Windows 7 64 bit SP1
    Oracle Instant Client basic lite 11.2.0.2.0
    SQLPlus 1.5 22D

    Have you tried WOW64 ? I have not used this emulator for sqlplus but it works for other 32 bit applications.
    http://msdn.microsoft.com/en-us/library/aa384249%28v=VS.85%29.aspx
    Thanks

  • Cannot install Oracle ODAC for Windows Itanium 64-bit

    I downloaded 64-bit ODAC 10.2.0.3 for Windows Itanium (the file ODAC10203IA64.zip), unpacked it, run install\setup.exe and see:
    1) Some console-like application is started:
    Starting Oracle Universal Installer...
    No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
    Preparing to launch Oracle Universal Installer from C:\DOCUME~1\UserName\LOCALS~1\Temp\5\OraInstall2007-05-10_04-36-32PM. Please wait ...
    2) The application exits after 5-15 seconds without any messages.
    In its installActions2007-05-10_04-36-32PM.log we can see this:
    Using paramFile: D:\Install\Oracle\10g_winIA_client_102010\install\oraparam.ini
    No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
    The commandline for unzip:
    D:\Install\Oracle\10g_winIA_client_102010\install\unzip -qqq ../stage/Components/oracle.swd.jre/1.4.2.8.0/1/DataFiles/"*.jar" -d "C:\DOCUME~1\AVKULA~1\LOCALS~1\Temp\4\OraInstall2007-05-10_04-36-32PM"
    The commandline for unzip:
    D:\Install\Oracle\10g_winIA_client_102010\install\unzip -qqq ..\stage\Components\oracle.swd.oui\10.2.0.1.0\1\DataFiles\/"*.jar" -d "C:\DOCUME~1\AVKULA~1\LOCALS~1\Temp\4\OraInstall2007-05-10_04-36-32PM"
    The commandline for unzip:
    D:\Install\Oracle\10g_winIA_client_102010\install\unzip -qqq ..\stage\Components\oracle.swd.oui.core\10.2.0.1.0\1\DataFiles\/"*.jar" -d "C:\DOCUME~1\AVKULA~1\LOCALS~1\Temp\4\OraInstall2007-05-10_04-36-32PM"
    The number of files bootstrapped for the jre is 528.
    The number of files bootstrapped for the oui is 98.
    And that's all! No error messages!
    What is a problem?
    Software: Windows Server 2003 Enterprice Edition SP2 (Build 3790) 64-bit
    PS: I'm new in this forum, I'm sorry if write this question within an inappropriate topic.

    In reading some other posts, I see I should have included this:
    Windows Server 2003 Standard, x64 Edition, SP2
    Dual core AMD Opteron
    3.75GB RAM
    The machine came to me with an Oracle 9 client installed, so someone got an Oracle installer to run on it, though it may be the 32 bit version...
    Thanks!

Maybe you are looking for

  • How to add spaces at the end of record

    Hi Friends, i am creating a file which contains more than 100 records. In ABAP i have internal table with on field(135) type c. some time record have length 120, somtime 130 its vary on each record. but i would like to add space at the end of each re

  • Attachment are not showing in learner self service for classes

    same OLM:Attachments Linked To Classes Are Not Visible By Learner Self-Service Responsibility [ID 375830.1] pplies to: Oracle Learning Management - Version: 11.5.10.2 to 11.5.10.2 - Release: 11.5 to 11.5 Information in this document applies to any pl

  • Rearrange tracks inside a playlist (Android)

    On my iPod I can manually move my songs around that are in my playlist, but I can't do the same on my phone which is what I mostly use. It would be easier to have that option on all devices.

  • OutputService:generatePDFOutput: Is it possible to load a particular version of a form from LS repos

    Hi Input for this service require "Transformation Format", "Form", and "Content Root". My question: Is it is possible to use a particular version of a form other than the latest version ? Thanks Ben

  • What's with the MSI support?

    I bought a MSI-K8N Platinum about 6 weeks ago and since that day I've had nothing but trouble with my wireless network. As I'm not one of those who gives up instantly I figured that I might solve the (what seems to be software)-problems on my own or