Illustrator eps saving problem - this file is in use

I use Illustrator CS5.1 eps drawings in my Quark 9.3.1.1 files. I've recently been getting a new problem when altering these and saving them while the Q9 document containing the original illustration is open. Illustrator says it can't save as the file is in use by another application. It then makes a temp file. The only way around it seemes to be to save with a different name - deeply boring. Sometimes it just crashes. I'm on Lion 10.7.4.

Try closing quark, then see if you can save your .eps. Still dont work, close down all other apps. You have all the latest updats so trying to determine what has a hold on your file, if not an app then are you on a server?

Similar Messages

  • Error message "The document could not be saved. This file is already open" when trying to complete an electronic signature.

    Running Adobe Acrobat Professional 10.1.0. I cannot upgrade to newer version because several applications were already tested on this version.
    When trying to complete an electronic signature, my users receive the error message ""The document could not be saved. This file is already open".  When they close and open the file again to try to sign again they find a corrupted electronic signature.  Instead of a clean signature with the box colored in light blue they see their signature with the embedeed message Click Here to Verify & Sign with the box colored in grey.
    We turned off antivirus in the Sharefolder where the forms are stored and nothing.  We turned off the antivirus on the client and nothing.  We stored the files in another server and nothing.  One workaround is saving the file in the desktop, signing it, and then back to the Sharefolder.  Another is saving the file with a different file name.
    I've searched and the only similar thing was caused by the Windows Preview Pane.  See Information Transmogrification: Adobe Acrobat saving a file does not work, displays “File may be read-only”.  No luck with this one too.
    Is definitively an intermittent problem.  The users that experience the problem experience it intermittently.
    This started to happen when we move our computers to Windows 7.
    Any ideas?

    Correction on Question:
    This is a web application and the users need to be able to load the editable .pdf form from the website, edit it and submit it back to the website from within Internet Explorer.
    Users began getting the error message:
    'The document could not be saved. This file is already open.'
    last Friday after having no problems prior to this. Some users can edit the editable .pdf forms on the website and save the file with the same name to the website. Some get the error mentioned in the subject. 
    We really need help getting this resolved.
    Sandy Martin

  • The document could not be saved. This file is already open.

    This problem recently developed.with several versions of Acrobat Reader 9.x installed. The full version of Acrobat is not installed.
    Users used to be able to open an editable .pdf file in IE, edit it and save it. Some users can no longer do this. The are getting
    the error message "The document could not be savedl. This file is already open. Users who are able to save from within a browser, are actually
    using Acrobat Reader, which opens when opening the .pdf file from within the browser. Everyone can open Acrobat Reader V 9.x, edit an editable .pdf file and save it. It is just when the .pdf file is opened from a browser application, and the reader is not also launched. Help! This just started happening.
    Thanks,
    Sandy

    Correction on Question:
    This is a web application and the users need to be able to load the editable .pdf form from the website, edit it and submit it back to the website from within Internet Explorer.
    Users began getting the error message:
    'The document could not be saved. This file is already open.'
    last Friday after having no problems prior to this. Some users can edit the editable .pdf forms on the website and save the file with the same name to the website. Some get the error mentioned in the subject. 
    We really need help getting this resolved.
    Sandy Martin

  • Is there a way to work with AutoCAD files in Illustrator without saving the autoCAD file back to a 2

    Is there a way to work with AutoCAD files in Illustrator without saving the autoCAD file back to a 2007 .dxf file format?

    Different versions of Illustrator can import different versions of DXF.
    Maybe there's a plugin by hotdoor that might enable you to import the latest version of the file format.

  • Word 2007 - Save as Pdf gives error - This file is in use by another application or user

    I have MS Office 2007 Small Business.
    For months I have been using the "Save as PDF/XPS" option to save my word documents as PDF files.
    All of a sudden, when I click on the publish button within the "save as PDF dialog", I get the error:
    "This file is in use by another application or user."
    - I have tried creating a new word document and I still get this error when I try to save-as pdf. 
    - I have tried opening a document that previously was able to be saved-as-a-pdf, and it no longer works either.
    - I have tried saving from other office applications (excel, powerpoint) that also get errors now.
    I have not personally installed any new software that I recall between when this worked and stopped working for me.
    As far as I can tell there have been no updates explicitly for save-as-pdf in office.
    Is anyone else seeing this problem all-of-a-sudden?
    Thanks.
    jlk

    I just encountered this problem while trying to save a pdf from Excel 2007.  I had recently updated to Adobe Reader 9.1.
    I received the same error message you're reporting here when I went to Word 2007 and tried to save a pdf file from it as well. 
    I uninstalled Adobe Reader 9.1. 
    Reinstalled the Office 2007 pdf plug-in
    Successfully created pdf files from word and from Excel (which is what I needed to do in the first place).
    I then reinstalled Adobe Reader 9.1 so I could read the PDF files I had just created in Excel and word.
    I then tried to create pdf files from word and excel.  Error messages are back and I'm unable to create pdf's from word or excel.
    So.. why does Office 2007 pdf plugin not work when Adobe Reader 9.1 is installed?
    Frankly I'm getting tired of uninstalling Adobe Reader 9.1 every time I need to create a pdf file in Word or Excel.
    Bry

  • I need this file "How to Use the Content Conversion Module in JMS Adapter"

    Can someone send me this file:
    "How to Use the Content Conversion Module in JMS Adapter"
    I am not able to find it.
    Thanks
    Antonello

    pls refer guide
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-adapters/how%20to%20use%20the%20content%20conversion%20module%20with%20xi%203.0%20j2ee%20jms%20adapter.pdf
    Regards,
    Swetha.

  • Problem opening files from Sharepoint using Firefox 4

    When trying to open a file for editing from sharepoint 2010, I get the following message:
    The document could not be opened for editing. A Microsoft SharePoint Foundation compatible application could not be found to edit the document
    It works fine with IE8. Any thoughts/suggestions?

    Hi,
    According to your description, it is a good way to do a test about office 2010 SP2, here is an article about this issue- limitations of using the OneDrive for Business sync app with Office 2010 applications , it may help you.
    http://office.microsoft.com/en-us/sharepoint-help/solve-problems-youre-having-with-the-onedrive-for-business-sync-app-HA104047973.aspx
    Paul Shui
    Microsoft Online Community Support
    Please remember to click “Mark as Answer?on the post that helps you, and to click “Unmark as Answer?if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread

  • Illustrator CS3 saving problems

    We have recently integrated our MAC's with a new mini MAC sever.  Still authenticating on a windows domain and all home areas are network locations on a win2k3 server.
    All my Adobe CS3 programs work as you would expect with the exception of Illustrator.  I can make a new file under any user name and save it.  However if I load that same file up or any other saved file I get errors - some of the errors are on loading the file, ie, plugin's and Parm errors.  These all allow me to continue if they show up (not all the time), but no matter what I cannot save the file if I edit it or not.  I just get 'UNEXPECTED ERROR SAVING'.  I can't save anywhere not to a USB pen, network drive or local HDD.  I can save as an eps file but when I go to the location to see what has saved ther is no file there.
    I have tried loosing the parameters files and saving as an admin but still the same problem 'Unexpected error saving'.  Installed Illustrator and re-installed still the same problem.
    Can anyone give me any clues at all please??
    Dave S

    I am also having problems with a new trial version of Illustrator CS5.  Been working fine for several days of trial version, but got a message to run Application Manager today, and had to update/install a new 30 day trial.  I cannot save anything, new work, previous work.  Am on a PC, window XP, plenty of memory, power,etc  Not a great introduction to someone thinking of buying the new program.

  • Text Edit: Saving says "This File Does Not Exist"

    When I'm in Text Edit, it often won't let me save- claiming the file does not exist. Sometimes I'll open an older Text Edit file and make an edit, go to save again, and I get the same message. To remedy, it will let me save to the Desktop instead of say, a folder on the server that I'm working in. But even then- there are times that it will say the file does not exist when I go to save to the Desktop, but then it will just save it there anyway. Then I have to do a drag and drop into the correct folder I needed in the first place.
    This doesn't happen all the time, but it happens enough for me to think something is clearly wrong. Just to give a run-down, this happens on my work computer. It's a Mac desktop. Running Mac OS X Version 10.6.8. If anyone has any thoughts on the problem, I'm all ears. I'm also not terribly tech savvy in the way some other people are in this community. But I know my way around a computer pretty well.

    Copied from another thread for those who can't find the solution:
    "The problem when you get that "The document Untitled could not be saved as "-----" .  The file doesn't exist" message is actually nothing more than a Pathway problem.  The pathway Text Edit wants to use has been corrupted and TextEdit has no idea where to turn.
    Odds are VERY likely that if you look at the "start" folder of the path from which you are trying to save (and from which you probably save regularly), it is NOT the Top-Level Hard Drive Folder, but some folder inside the hard drive, possibly nested several layers in.
    To Fix This:
    1) Create any New TextEdit document, and click Save.
    2) When the Save Dialogue box pops up, navigate BACKWARDS to the absolute Top Level Folder of your Mac (probably called something like "Macintosh HD" or the like - we are talking the level ABOVE your User name / account).
    3) Click on that Top Level, and then navigate from there down through your User account to the actual folder where you would like to save your document.  It does not matter how deep your desired folder is located as long as you Start from the absolute Top Level of your entire system.
    4) Click Save.  It should save Just Fine. 
    What you basically just did was tell your Mac which way to turn - the "directions" the Mac was using got corrupted and the TextEdit save process got lost in the woods.  Doing the steps above sets the save process back on the correct path."
    Credits to "Shamovala McNerbstern-Ni" for the solution, from Document could not be saved file does not exist

  • Problem locating files which are using storage?

    Afternoon, I'm trying to clear my Macbook air's storage. (I have emptied my recycled bin)
    I can't find the files which my mac attributes these figures to. For example i've completely moved all my moves from my mac to my server, deleted all movies out of itunes and removed any MP4 files from Iphoto... I'm at a loss to how i've still go 9.36gb on my mac?
    Same again with 'other' storage. I've deleted all large files apart for one coming to 20gb so I should have no more that 30gb, where is my mac finding 76.91gb?
    In regards to my photo's, I can't seem to move them all onto my Icloud photo stream. I've paid for extra storage, I've set it up so that all new pictures go onto it but I can't seem to get my whole library on it. I've tried highlighting the images and dragging them across but this doesn't seem to work.
    Any ideas on these problems would be very helpful.
    Thanks James

    1. Re-index Macintosh HD.
        This will take a while. Wait until it is finished.
        System Preferences > Spotlight > Privacy
        http://support.apple.com/kb/ht2409
    2.Try OmniDiskSweeper. This will give the storage size details of the items.
       https://www.omnigroup.com/more
       Select Macintosh HD and click  “Sweep Selected Drive” at the bottom.
       Delete the files yo don’t want to keep.
       Be careful. Delete only the files that can be safely be deleted.
       About “Other”:
       http://support.apple.com/en-us/HT202867

  • Modifying and saving a Excel file by the use of Blob-Stream Method?

    Hi everyone...
    I'm trying to change and modify a Excel file which is received as Blob variable from database.
    I wrote a PL/SQL Procedure which get the Excel file and convert it to blob; after that send it as the parameter of a Java source called TestPrintExcel
    CREATE OR REPLACE DIRECTORY VMI_TEST_DIR AS '/afc/opt/dba/test_utl_dir';
    GRANT READ, WRITE ON DIRECTORY SYS.VMI_TEST_DIR TO SYSTEM;
    declare 
       bfi  bfile := bfilename('VMI_TEST_DIR','TestFzglist.xls');
       bin  blob;
       cout clob;  
    begin
       dbms_lob.open(bfi);
       dbms_lob.createtemporary(bin, true);
       dbms_lob.loadfromfile(bin, bfi, dbms_lob.getlength(bfi));
       dbms_lob.close(bfi);
       dbms_lob.createtemporary(cout, true);
       dbms_java.set_output(100000);
       TestPrintExcel(bin);
       dbms_output.put_line('done!');
    end;With the following Java procedure I can read the content of the Excel file and write it to database perfectly. But the question is, how can i save the excel file with the same way, if i would change or insert any cell? I mean with the same way that to save as blob stream. Because i get permission error when i use another methods like FileOutputStream, FileInputStream etc. That's way i want to resolve this problem with the blob-stream method. Can anybody tell me how i can do that or what a method i have to use?
    Thanks.
    create or replace and compile java source named xltest as
      import org.apache.poi.ss.usermodel.WorkbookFactory;
      import org.apache.poi.ss.usermodel.Workbook;
      import org.apache.poi.ss.usermodel.Sheet;
      import org.apache.poi.ss.usermodel.Row;
      import org.apache.poi.ss.usermodel.Cell;
      import org.apache.poi.ss.util.CellReference;
      import org.apache.poi.ss.usermodel.DataFormatter;
      import org.apache.poi.ss.usermodel.FormulaEvaluator;
      import java.util.*;
      import java.sql.*;
      import oracle.sql.*;
      import oracle.jdbc.driver.*;
      public class XLTEST {
        public static void printx( oracle.sql.BLOB xblin ) throws SQLException {                       
          Connection Conn = null;
          try {
            Conn = DriverManager.getConnection( "jdbc:default:connection:" );
            Workbook wb = WorkbookFactory.create( xblin.getBinaryStream() ); // "/afc/opt/dba/test_utl_dir/TstFzglist.xls"
            for ( int sheetNum = 0; sheetNum < wb.getNumberOfSheets(); sheetNum++ ) {  //NumberOfSheets
              String TableName = new String();       
              switch( sheetNum )
                case 0:
                  TableName = "freeimportxls_s1"; break;           
                case 1:
                  TableName = "FreeImportXLS_S2"; break;
                case 2:
                  TableName = "FreeImportXLS_S3"; break;
                default:
                  break;                  
              Sheet sheet1 = wb.getSheetAt(sheetNum);         
              java.util.Iterator<Row> ri = sheet1.rowIterator();                 
              while ( ri.hasNext() ) {
                Row row = ri.next();
                java.util.Iterator<Cell> ci = row.cellIterator();                       
                while ( ci.hasNext() ) {
                  Cell cell = ci.next();
                  CellReference cellRef = new CellReference( row.getRowNum(), cell.getColumnIndex() );                         
                  switch( cell.getCellType() ) {
                  case Cell.CELL_TYPE_STRING:                            
                    Values   += "'" + cell.getRichStringCellValue().getString() + "'";               
                    break;
                  case Cell.CELL_TYPE_NUMERIC:
                    Values   += "'" + cell.getNumericCellValue() + "'";
                    break;
                  case Cell.CELL_TYPE_BOOLEAN:
                    Values   += "'" + cell.getBooleanCellValue() + "'";
                    break;
                  case Cell.CELL_TYPE_FORMULA:
                    Values   += "'" + cell.getCellFormula() + "'";
                    break;
                  default:
                    Values   += "''";               
                  int Counter1 = cell.getColumnIndex() + 1;
                  int Counter2 = row.getLastCellNum();
                  if ( Counter1==Counter2 ) {
                    Values   += ")";                          
                  else {
                    Values   += "," ;
                } System.out.println ( Values );               
                if ( ( sheetNum >= 0 ) && ( sheetNum <=2 ) ) {
                   String sqlUpdate = "INSERT INTO " + TableName + " VALUES " + Values;
                   PreparedStatement pstmt = Conn.prepareStatement( sqlUpdate );                                          
                   pstmt.executeUpdate();           
                   pstmt.close();              
            } Conn.close();
          } catch ( java.sql.SQLException e ) {       
            System.err.println( e.getMessage() );
            e.printStackTrace( System.err );
            Conn.close();}        
      };

    Hi,
    Because i get permission error when i use another methods like FileOutputStream, FileInputStream etc.Permission errors are generally resolved by granting the proper privilege via DBMS_JAVA.grant_permission procedure.
    Have you already tried that?
    http://download.oracle.com/docs/cd/E11882_01/java.112/e10588/chten.htm#BABHDBCJ

  • Saving iMovie '08 files for '06 use?

    I just installed iMovie 08 so I use a AVCHD camera. Works great. But '08 seems to lacking many features, plus its really confusing (totally different from '06). I thought you could import into 08, save then open and edit in 06. I can't even figure out how to "save as" in 08. I found the 08 files (automatically named "my first project" and "event....") but can't open either in 06. HELP!

    Ziatron wrote:
    Apple did this knowing that iMovie 08 was not a replacment for iMovie 06, but rather an additional program that proved very handy for some applications.
    The Web site below has a good comparison of Apple video products.
    http://www.geethree.com/slick/imovie8.html
    Thanks for the info - I read in forums and told by others that iMovie 08 readily reads video formats that '06 was not able to. So I had the assumption that '08 was an upgrade from 06. The sole reason I got '08 is for the ease of transferring my MOD extension files from my Canon FS100. Previously, I had to use Sq5 streamclip to convert the MOD files before I can do any edits in 06.
    Now the clips from the camcorder readily transfer to iMovie08 but can't be opened with 06 directly, I still have to go the extra step and save the clips then open it with '06 for edits. So much for my thinking of the ease of transfer benefit!

  • When I try to put the icon in the applications folder, it says it can't install it because this file is in use: libsoftokn3.dylib. Ihave closed all apps and I have no idea what this is.

    When I try to put the updated Firefox icon into my applications folder, I see this message:
    The operation can’t be completed because the item “libsoftokn3.dylib” is in use.
    I have closed all apps and don't understand what this refers to.
    Thanks!

    https://support.mozilla.com/en-US/questions/795198
    https://support.mozilla.com/en-US/questions/791127
    http://forums.mozillazine.org/viewtopic.php?f=38&t=1955891
    thank you

  • Illustrator cs6 "this file cannot be found" problem when open file from network

    I used to install the trial version of Illustrator CC on my desktop and then when the trial run out I decide to go with illustrator CS6 instead, So I decide to buy &
    install Illustrator CS6 on our desktop and everything seem to be fine except
    the problem is our .ai file is located on the network shared drive of the design team,
    When we try to open the file from the network drive with illustrator CS6, it said "This file cannot be found"
    - we try to copy the file from network drive to our desktop and file can open without problem
    - if we directly double click the file from the network drive to launch the illustrator CS6 with that file. It's also fine, no problem at all.
    - but if we open the illustrator CS6 first and try open.. and then browse to that file on network, then "This file cannot be found" happen again.
    - Illustrator CS6 have no problem open file in the local harddisk.
    - Illustrator CC never have this problem open file in our network drive, try reinstall the Illustrator CC trial again and it can open without problem
    - I try using Adobe CC Cleaner tool to remove everything before reinstall the Illustrator CS6, still no luck.
    - Try remove the Adobe relate folder in user/user/Appdata and then reinstall, still no luck
    - Try right click and open with --> Illustrator CS6 , yes if we double click the file directly it's ok, but as mentioned if we open illustrator first then browse for the file, the problem happen.
    Did I miss anything to fix it ?

    the same thing happend to me,
    in my office the same folder with hebrew name, I can open files
    on my laptop the same folder with hebrew name, I cannot open files.
    I know its about the folder because when I put the files in a different folder, it open them.
    how can I fix it without changing the names of my entire work folders?
    there must be a different between my two computers.
    thanks for your help

  • Problems with file uploading servlet, the form action doesnt capture url

    Hi, i have one problem. I am working on a project , i have created a servlet that takes uploaded files and processses them and links them back to user to download. The servlet works perfectly from my computer, I am using apache-tomcat-6.0.16 and java 1.6 , I have two forms called encrypt.html and decrypt.html, I will post both of them, now the problem is when somebody access it on the internet while i am running apache, they get a connection was reset on a firefox browser and same stuff on Internet Explorer.
    i have checked my server logs and saw nothing unusual there, So please if you can help me, it is my project.
    I am pasting html file and error message that other users where getting remotely.
    <html>
    <head>
    <meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
    <title>Stego Form</title>
    <link rel='STYLESHEET' type='text/css' href='encrypt.css'>
    </head>
    <body>
    <center>
    <form name='encrypt' enctype='multipart/form-data' method='POST' action='http://localhost:8080/examples/temp2
    ' accept-charset='UTF-8'>
    <input type='hidden' name='sfm_form_submitted' value='yes'>
    </input>
    <input type='hidden' name='eord' value='e'>
    <select name='encryption' size='1'>
             <option value='Select an encryption' selected>
             Select an encryption
             </option>
             <option value='DES'>
             DES
             </option>
             <option value='Tripple DES'>
             Tripple DES
             </option>
    </select>
             <input type='file' name='overt' size='20'>
             <input type='file' name='covert' size='20'>
             <input type='submit' name='submit' value='Submit'>
    </form>
    </center>
    </body>
    </html>so it works for me even if i access the page with my ip , but for others it doesnt work,
    now the user got this xhtml page that i will show, i cant find attach button so i am pasting here.
    here is the servlet coding
    import java.io.*;
    import java.util.*;
    import javax.servlet.ServletException;
    import javax.servlet.http.*;
    import org.apache.commons.fileupload.*;
    import org.apache.commons.fileupload.disk.DiskFileItemFactory;
    import org.apache.commons.fileupload.servlet.ServletFileUpload;
    public class temp2 extends HttpServlet
        FileInputStream fin;
        String filenames[] = new String[2],fieldname,fieldval;
        String keyfile,IVfile;
        String names[] = new String[2];
        public temp2()
            super();
        @Override
        public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
            doPost(request, response);
        @Override
        public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
            String eord="";
            List lst = null;
            boolean isMultiPart = ServletFileUpload.isMultipartContent(request);
            if (!isMultiPart) // check whether the post request is actually multipart
                System.out.println("ERROR NOT MULTIPART");
                System.exit(0);
            DiskFileItemFactory fif = new DiskFileItemFactory();
            ServletFileUpload sfu = new ServletFileUpload(fif);
            sfu.setSizeMax(10000000);
            try {  lst = sfu.parseRequest(request);  }
            catch (FileUploadException ex)
            { System.out.println("ERROR IN PARSING FILES" + ex); System.exit(0);  }
            if(lst.isEmpty())  // check whether request is empty
                System.out.println("ERROR LIST SIZE NOT GOOD : " + lst.size());
                System.exit(0);
            Iterator x = lst.iterator();
            int i = 0;
            FileItem f = (FileItem)x.next();
            f = (FileItem)x.next();
            System.out.println(f.getFieldName());
            if(f.getFieldName().equalsIgnoreCase("eord")) // check hidden field to know the case : encrypt or decrypt
                eord = f.getString();
                System.out.println(f.getString());
            else // if it is not first field exit
                System.out.println("Invalid FORM");
                System.exit(0);
            f = (FileItem)x.next(); // next field
            if(f.getFieldName().equalsIgnoreCase("encryption")) // type of encryption des / tdes
                fieldname = f.getFieldName();
                fieldval = f.getString();
                System.out.println(f.getString());
            if(eord.equalsIgnoreCase("e")) // if it is encryption form only file required
                while(x.hasNext())
                    f = (FileItem)x.next();
                    if(!f.isFormField())
                        int check = f.getName().lastIndexOf(File.separator);
                        System.out.println(File.separator);
                        if(check==-1)
                            System.out.println(f.getName());
                            System.out.println("Unsupported browser : " + check);
                            System.exit(0);
                        File ff = new File("e:\\apache\\webapps\\temp\\"+f.getName().substring(check));
                        names[i] = ff.getName(); // original file names
                        try
                            f.write(ff);
                            filenames[i] = ff.getAbsolutePath();
                        // renamed    
                            ff.deleteOnExit();
                        }catch(Exception e) {System.out.println("Error writing file"+ ff.getAbsolutePath()); System.exit(0);}
                        i++;
                    try { System.in.read(); } catch(Exception e) {}
                }// endwhile
                if(fieldval.equalsIgnoreCase("DES"))
                    System.out.println("DES 1"+filenames[1]);
                    javades o = new javades(filenames[1]); // the file to be encrypted   
                    filenames[1] = "e:\\apache\\webapps\\temp\\files\\" + names[1];
                    System.out.println("should be original" + filenames[1]);
                else if(fieldval.equalsIgnoreCase("Tripple DES"))
                    javatdes o = new javatdes(filenames[1]);
                    filenames[1] = "e:\\apache\\webapps\\temp\\files\\" + names[1];
                    System.out.println(filenames[1]);
                System.out.println("Calling stego");
                filenames[0] = "e:\\apache\\webapps\\temp\\" + names[0];
                System.out.println("file 1 "+ filenames[0]);
                System.out.println("file 2"+ filenames[1]);
                try { System.in.read(); } catch(Exception e) {}
                stego s = new stego(filenames[0],filenames[1]);
                System.out.println("mainext " + s.mainext);
                // encryption done, and new files are loaded, now lets hide
                if(s.mainext.equalsIgnoreCase("wav"))
                    s.encodewav();
                    System.out.println("Encoded wave");
                else if(s.mainext.equalsIgnoreCase("bmp"))
                    System.out.println("Encoded bmp");
                    s.encodebmp();
                System.out.println("done !");
                PrintWriter pr = response.getWriter();
                pr.println("Greetings , Your work is done and saved, now download the following files");
                pr.println("The secret key file is needed for getting back your hidden file, so download that too");
                pr.write("<a href=\"/temp/files/IV.txt\">click here</a>");
                pr.write("<br/><a href=\"/temp/files/key.txt\">click here</a>");
                pr.write("<br/><a href=\"/temp/files/"+names[0]+"\">click here</a>");
                return;
            // if it is decryption case
            else if(eord.equalsIgnoreCase("d"))
                while(x.hasNext())
                    f = (FileItem)x.next();
                    if(!f.isFormField())
                        int check = f.getName().lastIndexOf(File.separator);
                        System.out.println(File.separator);
                        if(check==-1)
                            System.out.println(f.getName());
                            System.out.println("Unsupported browser : " + check);
                            System.exit(0);
                        File ff = new File("e:\\apache\\webapps\\temp\\"+f.getName().substring(check));
    // else if ladder to store paths of stegofile keyfile and IVfile                   
                        if(f.getFieldName().equalsIgnoreCase("stegofile"))
                            filenames[0] = ff.getAbsolutePath();
                        else if(f.getFieldName().equalsIgnoreCase("keyfile"))
                            keyfile = ff.getAbsolutePath();
                        else if(f.getFieldName().equalsIgnoreCase("IVfile"))
                            IVfile = ff.getAbsolutePath();
                        try
                            f.write(ff); // writes whole file at once
                        }catch(Exception e) {System.out.println("Error writing file"); System.exit(0);}
                }// endwhile
                System.out.println("Calling stego");
                System.out.println("file 1 "+ filenames[0]);
                stego s = new stego(filenames[0]);
                System.out.println("mainext " + s.mainext);
                if(s.mainext.equalsIgnoreCase("wav"))
                    s.decodewav();
                    System.out.println("Encoded wave");
                else if(s.mainext.equalsIgnoreCase("bmp"))
                    s.decodebmp();
                    System.out.println("Encoded bmp");
                System.out.println("done !");
                ////// hidden file has been retrieved , now lets decrypt it
                System.out.println("ext " + s.ext);
                filenames[0] = "e:\\apache\\webapps\\temp\\"+s.filename;
                System.out.println(filenames[0]);
                System.out.println(keyfile);
                System.out.println(IVfile);
                if(fieldval.equalsIgnoreCase("DES"))
                    javades o = new javades(filenames[0],keyfile,IVfile); // the file to be encrypted   
                    filenames[0] = "e:\\apache\\webapps\\temp\\" + ( new File(filenames[0]).getName());
                    System.out.println("should be original" + filenames[0]);
                else if(fieldval.equalsIgnoreCase("Tripple DES"))
                    javatdes o = new javatdes(filenames[0],keyfile,IVfile);
                    filenames[0] = "e:\\apache\\webapps\\temp\\" + ( new File(filenames[0]).getName());
                    System.out.println(filenames[0]);
                PrintWriter pr = response.getWriter();
                pr.write("Greetings, you have successfully retrieved your hidden file, now download it from here <br>");
                pr.write("<a href=\"http://localhost:8080/temp/files/" + (new File(filenames[0]).getName())+"\">Click here</a>");
    }and here is the xhtml file the user receives, whe he clicks the submit button,
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html [
      <!ENTITY % htmlDTD
        PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "DTD/xhtml1-strict.dtd">
      %htmlDTD;
      <!ENTITY % netErrorDTD
        SYSTEM "chrome://global/locale/netError.dtd">
      %netErrorDTD;
    <!ENTITY loadError.label "Problem loading page">
    <!ENTITY retry.label "Try Again">
    <!-- Specific error messages -->
    <!ENTITY connectionFailure.title "Unable to connect">
    <!ENTITY connectionFailure.longDesc "&sharedLongDesc;">
    <!ENTITY deniedPortAccess.title "This address is restricted">
    <!ENTITY deniedPortAccess.longDesc "">
    <!ENTITY dnsNotFound.title "Server not found">
    <!ENTITY dnsNotFound.longDesc "
    <ul>
      <li>Check the address for typing errors such as
        <strong>ww</strong>.example.com instead of
        <strong>www</strong>.example.com</li>
      <li>If you are unable to load any pages, check your computer's network
        connection.</li>
      <li>If your computer or network is protected by a firewall or proxy, make sure
        that &brandShortName; is permitted to access the Web.</li>
    </ul>
    ">
    <!ENTITY fileNotFound.title "File not found">
    <!ENTITY fileNotFound.longDesc "
    <ul>
      <li>Check the file name for capitalization or other typing errors.</li>
      <li>Check to see if the file was moved, renamed or deleted.</li>
    </ul>
    ">
    <!ENTITY generic.title "Oops.">
    <!ENTITY generic.longDesc "
    <p>&brandShortName; can't load this page for some reason.</p>
    ">
    <!ENTITY malformedURI.title "The address isn't valid">
    <!ENTITY malformedURI.longDesc "
    <ul>
      <li>Web addresses are usually written like
        <strong>http://www.example.com/</strong></li>
      <li>Make sure that you're using forward slashes (i.e.
        <strong>/</strong>).</li>
    </ul>
    ">
    <!ENTITY netInterrupt.title "The connection was interrupted">
    <!ENTITY netInterrupt.longDesc "&sharedLongDesc;">
    <!ENTITY netOffline.title "Offline mode">
    <!ENTITY netOffline.longDesc "
    <ul>
      <li>Uncheck "Work Offline" in the File menu, then try again.</li>
    </ul>
    ">
    <!ENTITY netReset.title "The connection was reset">
    <!ENTITY netReset.longDesc "&sharedLongDesc;">
    <!ENTITY netTimeout.title "The connection has timed out">
    <!ENTITY netTimeout.longDesc "&sharedLongDesc;">
    <!ENTITY protocolNotFound.title "The address wasn't understood">
    <!ENTITY protocolNotFound.longDesc "
    <ul>
      <li>You might need to install other software to open this address.</li>
    </ul>
    ">
    <!ENTITY proxyConnectFailure.title "The proxy server is refusing connections">
    <!ENTITY proxyConnectFailure.longDesc "
    <ul>
      <li>Check the proxy settings to make sure that they are correct.</li>
      <li>Contact your network administrator to make sure the proxy server is
        working.</li>
    </ul>
    ">
    <!ENTITY proxyResolveFailure.title "Unable to find the proxy server">
    <!ENTITY proxyResolveFailure.longDesc "
    <ul>
      <li>Check the proxy settings to make sure that they are correct.</li>
      <li>Check to make sure your computer has a working network connection.</li>
      <li>If your computer or network is protected by a firewall or proxy, make sure
        that &brandShortName; is permitted to access the Web.</li>
    </ul>
    ">
    <!ENTITY redirectLoop.title "The page isn't redirecting properly">
    <!ENTITY redirectLoop.longDesc "
    <ul>
      <li>This problem can sometimes be caused by disabling or refusing to accept
        cookies.</li>
    </ul>
    ">
    <!ENTITY unknownSocketType.title "Unexpected response from server">
    <!ENTITY unknownSocketType.longDesc "
    <ul>
      <li>Check to make sure your system has the Personal Security Manager
        installed.</li>
      <li>This might be due to a non-standard configuration on the server.</li>
    </ul>
    ">
    <!ENTITY sharedLongDesc "
    <ul>
      <li>The site could be temporarily unavailable or too busy. Try again in a few
        moments.</li>
      <li>If you are unable to load any pages, check your computer's network
        connection.</li>
      <li>If your computer or network is protected by a firewall or proxy, make sure
        that &brandShortName; is permitted to access the Web.</li>
    </ul>
    ">
      <!ENTITY % globalDTD
        SYSTEM "chrome://global/locale/global.dtd">
      %globalDTD;
    ]>
    <!-- ***** BEGIN LICENSE BLOCK *****
       - Version: MPL 1.1/GPL 2.0/LGPL 2.1
       - The contents of this file are subject to the Mozilla Public License Version
       - 1.1 (the "License"); you may not use this file except in compliance with
       - the License. You may obtain a copy of the License at
       - http://www.mozilla.org/MPL/
       - Software distributed under the License is distributed on an "AS IS" basis,
       - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
       - for the specific language governing rights and limitations under the
       - License.
       - The Original Code is mozilla.org code.
       - The Initial Developer of the Original Code is
       - Netscape Communications Corporation.
       - Portions created by the Initial Developer are Copyright (C) 1998
       - the Initial Developer. All Rights Reserved.
       - Contributor(s):
       -   Adam Lock <[email protected]>
       -   William R. Price <[email protected]>
       -   Henrik Skupin <[email protected]>
       -   Jeff Walden <[email protected]>
       - Alternatively, the contents of this file may be used under the terms of
       - either the GNU General Public License Version 2 or later (the "GPL"), or
       - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
       - in which case the provisions of the GPL or the LGPL are applicable instead
       - of those above. If you wish to allow use of your version of this file only
       - under the terms of either the GPL or the LGPL, and not to allow others to
       - use your version of this file under the terms of the MPL, indicate your
       - decision by deleting the provisions above and replace them with the notice
       - and other provisions required by the LGPL or the GPL. If you do not delete
       - the provisions above, a recipient may use your version of this file under
       - the terms of any one of the MPL, the GPL or the LGPL.
       - ***** END LICENSE BLOCK ***** -->
    <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
        <title>Problem loading page</title>
        <link rel="stylesheet" href="temp2_files/netError.css" type="text/css" media="all"/>
        <!-- XXX this needs to be themeable -->
        <link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAICSURBVHjaYvz//z8DJQAggJhwiDPvnmlzc2aR0O+JGezt+AwACCCsBhxfYhn59N41FWtXIxZOLu70niRGXVwGAAQQNgNYHj96O8HaWYdJW5ubwd4/mI2Ng7sblwEAAYRhwMm1URk/vn4SUNWVYGD8+YZBXZOZm5OLzRjoCmNsBgAEEKoBN82Y7l851GLrqMjM8Oc7A8O/3wwMP54wuAQFCXNycUzGZgBAAKEYcOaKZO2/f//5FbUVgBrfMoRVcgHpNwyKGjKMXDwCan0prFboBgAEELIBzDcvXyy2cVZhYPj9GWj7H4jo/38MDJ9OMDj7O/KzsjH3oxsAEEBwA/bNNipiZf7FI6cqwcDw8x2qqp8fGORUpVn4BEXlgGHhhCwFEEAwA9gfP3hdZ+Oizcjw+wvCdjgAuuLrFQbXIH9hTm7uqcgyAAEENuD4ctcebm5mbikFYRTbV7V/Q6j88Z5BSuY7q4CQgAjQFR4wYYAAAhtw89L5ZFsnRaDtn4CW/YXrAQcisit+PGVwDgrnZ2NnnwATBQggpsNLvGYLCAmxi8tLARWg+h3FBVBXSEj/ZZWQkRcCuiIQJAQQQCyvnj5KMDTkZ2JgYmRg4FchnHv+vmEwttLmeXT3VjKQtx4ggFgk5TXebV63UfT3ijOMxOZAVlZWdiB1EMQGCCBGSrMzQIABAFR3kRM3KggZAAAAAElFTkSuQmCC"/>
        <script type="application/x-javascript"><![CDATA[
          // Error url MUST be formatted like this:
          //   moz-neterror:page?e=error&u=url&d=desc
          // Note that this file uses document.documentURI to get
          // the URL (with the format from above). This is because
          // document.location.href gets the current URI off the docshell,
          // which is the URL displayed in the location bar, i.e.
          // the URI that the user attempted to load.
          function getErrorCode()
            var url = document.documentURI;
            var error = url.search(/e\=/);
            var duffUrl = url.search(/\&u\=/);
            return decodeURIComponent(url.slice(error + 2, duffUrl));
          function getDescription()
            var url = document.documentURI;
            var desc = url.search(/d\=/);
            // desc == -1 if not found; if so, return an empty string
            // instead of what would turn out to be portions of the URI
            if (desc == -1) return "";
            return decodeURIComponent(url.slice(desc + 2));
          function retryThis()
            // Session history has the URL of the page that failed
            // to load, not the one of the error page. So, just call
            // reload(), which will also repost POST data correctly.
            try {
              location.reload();
            } catch (e) {
              // We probably tried to reload a URI that caused an exception to
              // occur;  e.g. a non-existent file.
          function initPage()
            var err = getErrorCode();
            // if it's an unknown error or there's no title or description
            // defined, get the generic message
            var errTitle = document.getElementById("et_" + err);
            var errDesc  = document.getElementById("ed_" + err);
            if (!errTitle || !errDesc)
              errTitle = document.getElementById("et_generic");
              errDesc  = document.getElementById("ed_generic");
            var title = document.getElementById("errorTitleText");
            if (title)
              title.parentNode.replaceChild(errTitle, title);
              // change id to the replaced child's id so styling works
              errTitle.id = "errorTitleText";
            var sd = document.getElementById("errorShortDescText");
            if (sd)
              sd.textContent = getDescription();
            var ld = document.getElementById("errorLongDesc");
            if (ld)
              ld.parentNode.replaceChild(errDesc, ld);
              // change id to the replaced child's id so styling works
              errDesc.id = "errorLongDesc";
            // remove undisplayed errors to avoid bug 39098
            var errContainer = document.getElementById("errorContainer");
            errContainer.parentNode.removeChild(errContainer);
        ]]></script>
      </head>
      <body dir="ltr">
        <!-- ERROR ITEM CONTAINER (removed during loading to avoid bug 39098) -->
        <!-- PAGE CONTAINER (for styling purposes only) -->
        <div id="errorPageContainer">
          <!-- Error Title -->
          <div id="errorTitle">
            <h1 id="errorTitleText">The connection was reset</h1>
          </div>
          <!-- LONG CONTENT (the section most likely to require scrolling) -->
          <div id="errorLongContent">
            <!-- Short Description -->
            <div id="errorShortDesc">
              <p id="errorShortDescText">The connection to the server was reset while the page was loading.</p>
            </div>
            <!-- Long Description (Note: See netError.dtd for used XHTML tags) -->
            <div id="errorLongDesc">
    <ul>
      <li>The site could be temporarily unavailable or too busy. Try again in a few
        moments.</li>
      <li>If you are unable to load any pages, check your computer's network
        connection.</li>
      <li>If your computer or network is protected by a firewall or proxy, make sure
        that Firefox is permitted to access the Web.</li>
    </ul>
    </div>
          </div>
          <!-- Retry Button -->
          <xul:button xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" id="errorTryAgain" label="Try Again" oncommand="retryThis();"/>
        </div>
        <!--
        - Note: It is important to run the script this way, instead of using
        - an onload handler. This is because error pages are loaded as
        - LOAD_BACKGROUND, which means that onload handlers will not be executed.
        -->
        <script type="application/x-javascript">initPage();</script>
      </body>
    </html>thank you for your prompt reply in advance,
    Regards,
    Mihir Pandya

    Hi, thank you for your replies, I found out few things about my servlet, and its portability
    and i have few questions, although i marked this topic as answered i guess its ok to post
    I am using javax.servlet.context.tempdir to store my files in that servletcontext temporary directory. But i dont know how to give hyperlink
    of the modified files to the user for them to download the modified files.
    What i am using to get the tempdir i will paste
    File baseurl = (File)this.getServletContext().getAttribute("javax.servlet.context.tempdir");
    System.out.println(baseurl);
    baseurl = new File(baseurl.getAbsolutePath()+File.separator+"temp"+File.separator+"files");
    baseurl.mkdirs();so i am storing my files in that temp/files folder and the servlet processes them and modifies them, then how to present them as
    links to the user for download ?
    and as the servlet is multithreaded by nature, if my servlet gets 2 different requests with same file names, i guess one of them will be overwritten
    And i want to create unique directory for each request made to the servlet , so file names dont clash.
    one another thing is that i want my servlet to be executed by my <form action> only, I dont want the user to simply type url and trigger the servlet
    Reply A.S.A.P. please..
    Thanks and regards,
    Mihir Pandya

Maybe you are looking for

  • Mail will no longer receive on Entourage, only on my iPhone. Help!!

    I've just got an iPhone and have recently got a new Macbook. I use entourage to collect my business emails, and have set my iPhone up to also recieve them. Mail is coming through find on the iPhone, but not on the Mac through Entourage. It gives me a

  • How to stream images stored in an external server in to a Flash Web Site?

    I would like to be able to bring in external images in a banner like in a slideshow, but not sure how to do it. I have a bunch of small images that I would like it to go through, and my current banner has all the images in the swf and the swf file is

  • How to get system and boot on one volume - currently on 2 volumes

    I have ended up with 2 hard drives one of which has Windows 7 on one partition and the other one has 2 volumes each with Windows 8.1 installed.  This 8.1 drive has one volume (D) marked as Active, Boot and the other volume (C) marked as System.   I w

  • "Select default PDF handler" greyed out in Acrobat XI and Reader X

    MIS just installed Acrobat XI for me, and now all PDFs from the web open in the Browser, which is not the way I usually operate.  I went to Preferences > General in both programs, and in both the "Select default PDF handler" option is greyed out.  An

  • ACH Payment Process in F110 Program

    Hi SAP folks, I am having a small issue with ACH payment process through F110 Program. I am using Payment program RFFOUS_T for a payment method " A" for ACH and all variant and other configuration is perfect. When I execute F110 program, it create DM