Content encoding when file uploading

Hello,
I'm trying to upload png file using javascript and client object model.
When I use approach from
MSDN article, I get transformed content. So file is not opening.
Is it necessary to use Base64 for encoding the file?
It works well for text files. I succeeded to upload master page so. But when I upload PNG, this encoding corrupts content.

Hello Sohel, thank you!
I use XMLHttpRequest for getting file content:
xhr = new XMLHttpRequest();
 xhr.onreadystatechange = onContentReadStateChange;
 xhr.open("GET", sourceFileURL, true);
 xhr.send();
(may be I should use another approach to read, not to write? I don't want to use JQuery for this)
then I use approach you suggest to put content to base64:
fileContent = xhr.responseText;
fileCreateInfo.set_content(new SP.Base64EncodedByteArray());
        for (var i = 0; i < fileContent.length; i++)
         fileCreateInfo.get_content().append(fileContent.charCodeAt(i));
When I upload such file to library, content is writed transformed and destination file can't be viewed as picture:

Similar Messages

  • Safari needs to click submit button twice when file uploading

    Hi all,
    I'm using Safari 4.0.5 and developing the html (no AJAX, but plain PHP posting) form with the file uploading on my local environment. I tested it fast and thick several times, then suddenly Safari stopped to upload the jpeg file, indicating loading animation on the address bar. So I tried to click the submit button once again, I succeed in sending two posts including one jpeg image.
    There's no problem with other browsers like Firefox and Chrome. Additionally, I tried to reinstalled Safari, rebooted Snow Leopard and checked file's permissions by Disk Utility app, but no dice.
    Any suggestions would be greatly appreciated.
    Thanks,

    I am having the exact same problem except that I'm in Safari 5.0. Did you ever come to any resolution on the problem?
    I am having trouble uploading certain jpegs (can't find a common thread between the images that won't work though they tend to be larger than 100k and larger than 800px wide). When I have the problem the progress bar just hangs at about 10%. The page never times out. Never throws any kind of error. I confirmed that the file is never making it to the application layer. Such a weird and intermittent problem. All other browsers are fine. Just Safari is a problem. Even with these images that are giving me a problem, sometimes they work - especially after restarting the browser.
    Any help or insight from anyone would be greatly appreciated.
    Message was edited by: Neal Ferrazzani

  • Pls help, (Access is denied) error when file upload to a local directory

    Hi, I've been stuck on this for the past few days and I am quite new at developing web application.
    Here is the problem that I am having, I don't know why it keeps on saying "access is denied" when I can see that the file is uploaded to the directory. I am developing a JSP page file upload using Jakarta Fileupload v1.2. However, every time when I try to upload a file to a local path (e:\temp) on the server I keep getting this problem. I even try looking into the server.policy file on glassfish but no luck, your help is appreciated thanks
    Here's the log after file upload, note: I can see the file being uploaded in the e:\temp but why does it keep telling me the error?
    I'm using netbean 5.5.1 and glassfish v2
    Initializing Sun's JavaServer Faces implementation (1.2_04-b10-p01) for context '/TestReport'
    java.io.FileNotFoundException: e:\temp (Access is denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
    at org.apache.commons.fileupload.disk.DiskFileItem.write(DiskFileItem.java:390)
    at org.apache.jsp.ProcessFileUpload_jsp._jspService(ProcessFileUpload_jsp.java:83)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:80)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:818)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:464)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:358)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:818)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:258)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:189)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:193)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:255)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
    at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:345)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
    at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:93)

    Hi, I've been stuck on this for the past few days and
    I am quite new at developing web application.
    Here is the problem that I am having, I don't know
    why it keeps on saying "access is denied" when I can
    see that the file is uploaded to the directory. I am
    developing a JSP page file upload using Jakarta
    Fileupload v1.2. However, every time when I try to
    upload a file to a local path (e:\temp)Hi there,
    Typically in a Web Container, applications are deployed to a folder called webapps (this is the case in Tomcat, I'm not sure about Glassfish)
    So the directory structure is something like C:/Tomcat/webapps/MyApplication/other folders......
    When you upload a file , you normally can upload it only to a folder under your application and not to a folder outside the application.
    First you can try to upload the file to a folder under the webapp and not outside the webapp, once you get that to work --- then internally in the Servlet you can write code to save the file to any directory on the server, but the Servlet must be located on the server.

  • Where is my WEBDAV content going when I upload it to my Lion Mini Server?

    I have a new Mac Mini server and I have Sandvox.  New to both, but not new to OS X etc.
    I am uploading using WEBDAV to the server from Sandvox - Sandvox tells me it's uploaded sucessfully.  You can't upload without first setting up the connection correctly - so I know it's authenticated etc.
    I can't view my site from Sandvox or the server because the web server on Lion Server needs you to configure the site - which includes telling the server WHERE the content of the site is.  So I can't open the site on the server because I can't configure the server because I don't know where the content is going.
    I have searched for files within the site - some are photos, with unique names - yet nothing comes up in my seach. 
    So in sandvox you can also specify a specific subfolder name for your site - so wherever the main content resides, you get a subfolder for your site - even if I call this something like THIS_IS_A_UNIQUE_FOLDER and then search for the folder - nothing.

    Hi there,
    When I inspect your site in browser tools, I'm getting 404 errors from your page:
    [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (jquery-2.0.3.min.map, line 0)
    [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (edge.4.0.0.min.map, line 0)
    BarnardosIreland wrote:
    I would have thought that publishing should give a complete package that doesn't need any further edits to the code and can just be directly ftp'ed to the web - is this correct?
    In general, you are correct - but also your server does need to be properly configured (and those errors above lead me to think it may not be) to serve the file types that your uploading - but it could be something else entirely. Can you zip up your composition folder, upload it to your Creative Cloud files, set it to share, and then post a link here so I can download it? If you'd rather not share it publicly, can you PM me with a link to your composition files?
    Thanks,
    Joe

  • Km ------------- File upload

    Hi experts,
              I am new in portal. i don't know abt KM(Knowledge Management).I have developed FileUpload application in Webdynpro. I need to store the upload files into KM.
                    1. How to acheive this one?
                    2. how to store uploaded files into KM?
                    3. more information abt KM?
                    4. i need basic steps how to do that?
                             give ur suggestions...
    Regards,
    P.Manivannan.

    Hi,
    You can try using the following piece of code:
    FileUpload fu = (FileUpload) this.getComponentByName("FileUploadinKM.jsp");                                        
    /get selected file (file will be present in local drive)/
                         if (fu != null) {
                                            /get filename and content type from file upload/
    String contentType = fu.getFile( ).getContentType( );
    fileName1 = fu.getFile( ).getFileName( );
    IUser user =  WPUMFactory.getUserFactory( ).getEP5User(req.getUser( ));
    ResourceContext ctxt = new ResourceContext(user);
    String resourceID = "/documents/Public Documents";
    RID rid = RID.getRID(resourceID);     
    IResource resFolder = ResourceFactory.getInstance( ).getResource(rid,ctxt);     
              if (resFolder != null) {
    ICollection folder = (ICollection) resFolder;
                          FileInputStream sourceFileInput = newFileInputStream(fu.getFile( ).getFile( ).getAbsolutePath( ));
                          IContent newContent =new Content(sourceFileInput, contentType, -1);
                         IResource res =folder.createResource(fileName1, null, newContent);
    Points are welcome
    Regards,
    Aanchal

  • How can we upload file into to OCS Content repository when we are in Apex

    We have installed the Oracle Application Express 2.2.1 into the OCS 10.1.2 database.
    The Apex authentication is set to operate with OCS SSO.
    We have made a form. There is a browse button on the form. We would like if the uploaded file appeared in the OCS content database repository as
    opposed to Apex document repository.
    To put it into another word, how can we upload the file into to OCS Content repository when we are in Apex.
    Generally speaking, how can we reach content from Apex?
    We have found many java based examples to use content sdk, but how can we use them with Apex? We believe that
    content hasn't got plsql interface.
    i would highly appreciate it if you sent me a full example program.

    Hi Ram,
    Thanks for the reply
    We have a requirement to device a solution to upload the policy documents related to iProcurement
    I am planning to create an OA page to upload the content and planning to use the AOL function security to restrict the users those who can access this page .
    Is there any better way to implement the security?
    Is this approach feasible or is there any better way to approach this requirement?
    Thanks

  • File upload fails...when specific encoding is included in the constructor

    Hi All
    I have a file upload function which uses MultipartRequest. It was working fine until I downloaded the latest version of MultipartRequest, which supports multi-lingual file upload. But now it does not work. I dont get any error message either.
    If I put "ISO8859_1" as the encoding, the file is never uploaded and I dont get any error; just get the 'submission successful' message. If I use "SHIFT_JIS" as the encoding (as I need to support Japanese) the file never gets uploaded and I dont get the 'submission successful' message either. The browser slows down very much and never goes to next page.
    What could be the reason?
    Has anybody used MultipartRequest to support languages other than English?
    Thanks in advance.
    m_asu

    Still stuck with upload functionality:
    Problem is with the name of the file. If I try to upload the file with Japanese name, it does not go the desired location and I dont get an error either. So it is hard to figure out what is going on.
    m_asu

  • FILE UPLOAD PROBLEM SHOWING THE CONTENTS IN THE SAME BROWSER WINDOW

    Hi,
    This is amit Joshi
    I have uploaded content using input tag of type file and posted to jsp as multipart/form-data type
    in that jsp i am using following code to display the content in browser but only first content is displayed How can i modify it to show all content in the file ..
    <html>
    <head>
    <title>File Upload Display</title>
    </head>
    <body>
    <%
    //ServletOutputStream sout=response.getOutputStream();
    StringBuilder strBuilder = new StringBuilder();
    int count=0;
    String f;
    f=request.getParameter("filedb");
    DBManager dbm = new DBManager();
    //dbm.createTable("mms3");
    //log.info("In JSP : "+ f);
    //dbm.insert_data(f,"mms3");
    %>
    <%
    if (ServletFileUpload.isMultipartContent(request)){
    ServletFileUpload servletFileUpload = new ServletFileUpload(new DiskFileItemFactory());
    List fileItemsList = servletFileUpload.parseRequest(request);
    strBuilder.append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>").append('\r').append('\n').append("<xpage version=\"1.0\">").append('\r').append('\n');
    String optionalFileName = "";
    FileItem fileItem = null;
    Iterator it = fileItemsList.iterator();
    ServletOutputStream outputStream=null;
    while (it.hasNext()){
    FileItem fileItemTemp = (FileItem)it.next();
    if (fileItemTemp.isFormField()){
    %>
    <b>Name-value Pair Info:</b>
    Field name: <%= fileItemTemp.getFieldName() %>
    Field value: <%= fileItemTemp.getString() %>
    <%
    if (fileItemTemp.getFieldName().equals("filename"))
    optionalFileName = fileItemTemp.getString();
    else
    fileItem = fileItemTemp;
    if (fileItem!=null){
    String fileName = fileItem.getName();
    %>
    <b>Uploaded File Info:</b>
    Content type: <%= fileItem.getContentType() %>
    Field name: <%= fileItem.getFieldName() %>
    File name: <%= fileName %>
    <%
    if(fileItem.getContentType().equals("image/jpeg")) { %>
    File : <p><%
         //response.setContentType("image/gif");
         byte[] bArray=fileItem.get();
         response.setContentType("image/jpeg");
         outputStream=null;
         outputStream= response.getOutputStream();
         outputStream.write(bArray);
         outputStream.flush();
         outputStream.close();
    else if(fileItem.getContentType().equals("text/plain"))
         %> File : <%= fileItem.getString() %>
    <%
    byte[] bArray=fileItem.get();
    response.setContentType("text/plain");
         outputStream = response.getOutputStream();
         out.println();
         outputStream.write(bArray);
         outputStream.flush();
         outputStream.close();
    %> </p> <%
    %>
    </body>
    </html>
    Edited by: Amit_Joshi on Nov 13, 2007 10:58 PM

    Well Well Well..
    That would not work...
    What you have to do is save the uploaded file content on to a location and then pass the fileName as a request parameter to a deidicated which displays the contents of that file.
    Just as an example
    <html>
    <head>
    <title>File Upload Display</title>
    </head>
    <body>
    <%
    //ServletOutputStream sout=response.getOutputStream();
    StringBuilder strBuilder = new StringBuilder();
    int count=0;
    String f;
    f=request.getParameter("filedb");
    DBManager dbm = new DBManager();
    //dbm.createTable("mms3");
    //log.info("In JSP : "+ f);
    //dbm.insert_data(f,"mms3");
    %>
    <%
    if (ServletFileUpload.isMultipartContent(request)){
    ServletFileUpload servletFileUpload = new ServletFileUpload(new DiskFileItemFactory());
    List fileItemsList = servletFileUpload.parseRequest(request);
    strBuilder.append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>").append('\r').append('\n').append("<xpage version=\"1.0\">").append('\r').append('\n');
    String optionalFileName = "";
    FileItem fileItem = null;
    Iterator it = fileItemsList.iterator();
    ServletOutputStream outputStream=null;
    while (it.hasNext()){
       FileItem fileItemTemp = (FileItem)it.next();
    %>
    Name-value Pair Info:
    Field name: <%= fileItemTemp.getFieldName() %><br/>
    Field value: <%= fileItemTemp.getString() %><br/>
    <%
    if (fileItemTemp.getFieldName().equals("filename"))
        optionalFileName = fileItemTemp.getString();
    if(!fileTempItem.isFormFiled()){
       String fileName = fileItem.getName();
       fileItem.write(optionalFileName);
    %>
    Uploaded File Info:
    Content type: <%= fileItem.getContentType() %><br/>
    Field name: <%= fileItem.getFieldName() %><br/>
    File name: <%= fileName %><br/>
    <%
    if(fileItem.getContentType().equals("image/jpeg") || fileItem.getContentType().equals("image/pjeg")) {
    %>
      <img src="FileServlet?fileName=<%=optionalFileName%>"   
    <%
    %>
    </body>
    </html>a sample code snippet for FileServlet.
    String fileName =  request.getParameter(fileName);
      File file = new File(fileName);
       if(!file.exists())
         return;
      // If JSP
      String mimeType = application.getMimeType("fileName");
           If you are using servlet
           String mimeType = this.getServletContext().getMimeType(fileName);
         response.setContentType(mimeType);  
         response.setHeader("Content-Disposition","inline;filename=\\"+fileName+"\\");
      BufferedOutputStream out1 = null;
      InputStream in = null;
      if(mimeType == null)
         mimeType = "application/octet-stream";
      try{
         in = new FileInputStream(f);
         response.setContentLength(in.available());
         BufferedOutputStream out1 = new BufferedOutputStream(response.getOutputStream(),1024);
         int size = 0;
         byte[] b = new byte[1024];
         while ((size = in.read(b, 0, 1024)) > 0)
            out1.write(b, 0, size);
      }catch(Exception exp){
      }finally{
          if(out1 != null){
             try{
                out1.flush();               
                out1.close();
             }catch(Exception e){}
          if(in != null){
            try{in.close();}catch(Exception e){}
      } Hope that might answer your question :)
    However,this is not the recommended way of doing this make use of MVC pattern.Would be a better approach.
    you might think of googling on this and can findout what is the best practise followed for problems of this sort
    REGARDS,
    RaHuL

  • Problem when I upload txt files to the server

    Hi, I have a problem when I try to upload files to the server, and I can't understand the fail.
    My case is:
    I have a jsp page where a from is.
    This form is sended to a servlet that proccess its content and upload the attach file to the server.
    It works correctly (it uploads the files, txt, xls and csv), the problem is when I try to upload a txt file like this, for example:
    Depth     Age
    0     0,1
    2     0,9
    3     2
    5     6
    6     9
    8     12
    34     25
    56     39
    101     40When I verify the uploaded file, this one has a character extra of return of line (a small square). This character prevents me from working then correctly with the file, on having detected a column of more.
    Which can be the problem?
    The code I use to uploaded the file is:
    try
        MyConnection Objconnection = new MyConnection();
        boolean isMultipart = FileUpload.isMultipartContent(req);
        // Create a factory for disk-based file items
        FileItemFactory factory = new DiskFileItemFactory();
         // Create a new file upload handler
        ServletFileUpload upload = new ServletFileUpload(factory);
        // Set overall request size constraint
        upload.setSizeMax(1024*512); //524288 Bytes (512 KB)
         // Parse the request
        List items = upload.parseRequest(req);
        // Process the uploaded items
        Iterator iter = items.iterator();
        String dat = new String();
        String typeFile = new String();
        while (iter.hasNext())
            FileItem item = (FileItem) iter.next();
            if (item.getFieldName().equals("typeFile") )
                typeFile = item.getString();
            if (!item.isFormField())
            String fieldName = item.getFieldName();
            String fileName = item.getName();
            String contentType = item.getContentType();
            boolean isInMemory = item.isInMemory();
            long sizeInBytes = item.getSize();
            int numbers=0;
            for(int i=fileName.length();(i=fileName.lastIndexOf('\\',i-1))>=0;)
                 numbers++;
            String stringFile[] = fileName.split("\\\\");
            HttpSession session = req.getSession(true);
            String loginSesion = (String)session.getAttribute("UserLogin");
            String newUserFolder = loginSesion;
            File createFile = new File("/usr/local/tomcat/webapps/Usuarios/FilesUp/"+newUserFolder);
            if ("AgeModel".equals(typeFile))
                createFile = new File("/usr/local/tomcat/webapps/Usuarios/FilesUp/AgeModels/"+newUserFolder);
            if (!createFile.exists())
                createFile.mkdir();
            fileName = stringFile[numbers];
            File uploadedFile = new File("/usr/local/tomcat/webapps/Usuarios/FilesUp/"+newUserFolder+"/"+fileName);
            if ("AgeModel".equals(typeFile) )
                uploadedFile = new File("/usr/local/tomcat/webapps/Usuarios/FilesUp/AgeModels/"+newUserFolder+"/"+fileName);
            existe = Objconnection.existFile(fileName, typeFile, loginSesion);
            if ( true == existe )
                 exito = false;
            else
                item.write(uploadedFile);
                ....// NOW REGISTER THE FILE IN TH DATA BASE
        } // if (!item.isFormField())
    } // WHILE ( iter.hasNext() )
                catch(Exception e) {
                out.println("Error de Aplicaci�n " + e.getMessage());
                return exito;
    ...THANKS

    Hi,
    Sorry I am aware this question was posted way back, but I am having similar problem and haven't been able to find the fix yet.
    So please let me known if you have got any ideas.
    My problem is same that I have to upload a CSV file from Client Machine (Windows) to Unix Application Server.
    I am using JSP method post and multipart/form-data (as in http://www.roseindia.net/jsp/file_upload/Sinle_upload.xhtml.shtml).
    The file is uploaded fine but the problem is it displays carraige Return (^M) a square boxes on Unix file.
    I can't ask user to convert file to Unox format before uploading. They just convert excel file to CSV and upload.
    Is there any way I can get rid of these characters as I have to use this file further.
    Sorry, I can't use any paid utility or tool for it.
    I would appreciate if you could please help.
    Thanks,
    SW

  • Ifweb60.exe crash when using file upload utility

    Hello,
    I have implemented the file upload utility in my own forms. When using the file upload for the first time in my forms session everything works fine. But when i try to start it again (within the same forms session) i get an ifweb60.exe crash on the server and a FRM-92101 error on the forms client
    Did anybody have the same problem before and how can i solve this?
    I am using iAS9i (release 1.0.2.1.0) with forms patch 10 (Jinitiator 1.3.1.9), Oracle server 8.1.7 on Windows NT 4.
    I included the output of my java console
    Thanks,
    Gerton
    Oracle JInitiator: Version 1.3.1.9
    Using JRE version 1.3.1.9 Java HotSpot(TM) Client VM
    User home directory = C:\WINNT\Profiles\382
    Proxy Configuration: Manual Configuration
    Proxy: MyProxy
    Proxy Overrides: <local>
    JAR cache enabled
    Location: C:\WINNT\Profiles\382\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading http://80nte/forms60java/f60all_jinit.jar from JAR cache
    Loading http://80nte/forms60java/UploadClient.jar.sig from JAR cache
    Loading http://80nte/forms60java/ctb_icons.jar from JAR cache
    connectMode=HTTP, native.
    Forms Applet version is : 60819
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Start setProperty
    Start setProperty
    Start setProperty
    Opening connection to http://80nte:80/download/907.doc...
    Copying resource (type: application/msword, modified on: Mon Aug 05 11:45:58 CEST 2002)...
    35840 byte(s) copied...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Start setProperty
    Start setProperty
    Start setProperty
    Client OS is Windows NT
    start RunCMD...: cmd.exe /C C:\TEMP\907.doc
    Opening Word document...
    Document has been released C:\TEMP\907.doc
    FileUploader: LoadFile : Named File
    FileUploader: 907.doc
    FileUploader: Dir>C:\TEMP\
    FileUploader: Named File = C:\TEMP\907.doc exists
    FileUploader: <PERFORM UPLOAD>
    FileUploader: Filesize 35840
    FileUploader: Source file size before encoding 35840 Bytes; (Compressed to 8905 Bytes)
    FileUploader: Size of encoded byte array : 12190 (3 Chunks)
    FileUploader: numchunks is 2
    FileUploader: Chunking : 0:4096
    FileUploader: Dispatch Chunk 1
    FileUploader: Chunking : 4096:8192
    FileUploader: Dispatch Chunk 2
    FileUploader: Chunking : 8192:12190
    FileUploader: Dispatch Chunk 3
    FileUploader: </PERFORM UPLOAD>
    Start setProperty
    Start setProperty
    Start setProperty
    Start setProperty
    Opening connection to http://80nte:80/download/907.doc...
    Copying resource (type: application/msword, modified on: Mon Aug 05 11:46:41 CEST 2002)...
    35840 byte(s) copied...
    Start setProperty
    Onbekende setProperty...
    Start setProperty
    Start setProperty
    Start setProperty
    Start setProperty
    Client OS is Windows NT
    start RunCMD...: cmd.exe /C C:\TEMP\907.doc
    Opening Word document...
    Opening Word document...
    Document has been released C:\TEMP\907.doc
    FileUploader: LoadFile : Named File
    FileUploader: 907.doc
    FileUploader: Dir>C:\TEMP\
    FileUploader: Named File = C:\TEMP\907.doc exists
    FileUploader: <PERFORM UPLOAD>
    FileUploader: Filesize 35840
    FileUploader: Source file size before encoding 35840 Bytes; (Compressed to 8917 Bytes)
    FileUploader: Size of encoded byte array : 12206 (3 Chunks)
    FileUploader: numchunks is 2
    FileUploader: Chunking : 0:4096
    FileUploader: Dispatch Chunk 1
    FileUploader: Chunking : 4096:8192
    FileUploader: Dispatch Chunk 2
    FileUploader: Chunking : 8192:12206
    FileUploader: Dispatch Chunk 3
    FileUploader: </PERFORM UPLOAD>
    oracle.forms.net.ConnectionException: Forms session <7> aborted: unable to communicate with runtime process.
         at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
         at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
         at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
         at oracle.forms.net.HTTPNStream.flush(Unknown Source)
         at java.io.DataOutputStream.flush(Unknown Source)
         at oracle.forms.net.StreamMessageWriter.run(Unknown Source)

    Problem is solved!

  • Docx file upload to content repository on MS Sharepoint

    I have installed Primavera P6 EPPM version 8.2 in use with content repository on MS Sharepoint 2010 SP1.
    When I an trying to upload files with extensions "docx", "xlsx" ... system message "uknown error, please contact
    your System Administrator" pop ups.
    Plus to it, all uploaded documents dissapears from list in "Projects" menu "Documents" . In "Dashbords" portlet
    I can see all earlier uploaded documents.
    May be somebody had similar problems and found solution for it? Advice would be very valuable.
    Juozas

    I'm not sure about that code for the file upload part. You should really go find the File upload stuff from Jakarta Commons or UploadBean from whoever wrote it. That will handle the file upload. The database part, there are tutorials in Java's site ... try searching for "store image database"

  • Some UTF8 files revert to western encoding when reopened.

    I'm using Dreamweaver CS3, and when I built an application I forgot to ensure that the encoding was set to UTF8.
    I went through all my files and changed the encoding from western european to UTF8. This was fine until I noticed that SOME files revert back to western european encoding when re-opened.
    No matter how many times I change the encoding back ( using ctrl+j and choosing the dropdown in page properties ) and save the files, it STILL reverts back to western when opened.
    This only seems to happen on certain files, and some are fine. I've tried creating a new file in UTF8 and copying the contents of the old one into it. The problem persists so I'm thinking that the file may contain odd characters that are causing Dreamweaver to 'intelligently' change the encoding.
    Any ideas are welcomed. Many thanks.

    I use lots of files that don't have headers, such as PHP includes which include snippets of HTML.
    CS3 seems to look for special characters in the file and IF there are UTF-8 encoded chracters in the file AND it is saved as such, it'll remember that when reopening it. However, if there are NO UTF-8 characters in there and you save it as UTF-8, then CS3 will revert back to another encoding (western or some such...), regardless of the setting in preferences (for files without explicit headers).
    This is a pain because some of my PHP includes may or may not contain Korean characters (multi-language site) and if I do add them, then I need to remember to switch the encoding to UTF-8 manually. It's just annoying that the global preferences, AREN'T!
    I'll be upgrading to CS4 this week so I'll let you know if it's an issue there too.

  • I get a file upload popup when composing an email using Godaddy webmail. How can I prevent this from happening?

    When I try to compose an email from Godaddy's webmail in the Firefox browser. My steps are as follows:
    -Open Firefox.
    -Log in to Godaddy webmail.
    -I hit the compose button.
    -New window pops up. This is the window that I would compose an email in.
    - Right after the compose window loads, I get another window that pops up. This window says "File Upload" in the upper left corner.
    If I exit that window I can then compose my email, and life is good until I want to compose another email. Then the problem repeats. I have contacted Godaddy support and the problem is not on their end. Also the problem DOES NOT happen when using another browser (Internet Explorer).

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • File Upload - When  is File saved in database

    Hi,
    I'm already using File Upload and Download in my application, which is working fine.
    Now I only need an information for better understanding.
    Is the file saved in the database table, when user selects the file from the file browse dialog or is it submitted when the user submits the page?
    Normally I'm using a lot of AJAX in my page, because of this I've no page process started on submit, I call javascript, that's calling processes on demand. Will my files be uploaded???
    Thanks
    chrissy

    Hello Chrissy,
    Never uploaded “regular” files into the db, only XML files, so I don’t have much experience working with BLOB, but please check if the following can help you - Re: Download an upload from Server directory
    In addition, Vikas wrote an application, which uploads CSV files directly into a table. The code can be downloaded in here - http://htmldb.oracle.com/pls/otn/f?p=38131:1
    >> I've found packages called WWV_FLOW_FILE_API and WWV_FLOW_FILE_MGR
    IMHO, you should try, as much as possible, to avoid using undocumented APEX internal packages, as they are subject to possible changes in future versions. If you can achieve your goals using public packages, and I’m pretty sure you can, it would be best.
    Hope this helps,
    Arie.

  • In dreamweaver mx 2004 and dreamweaver cs4, how I configure, when download/upload do not ask me to include DEPENDED FILES but act without including ?

    in dreamweaver mx 2004 and dreamweaver cs4, how I configure, when download/upload do not ask me to include DEPENDED FILES but act without including ?

    Open the Preferences panel (Edit menu on Windows, Dreamweaver menu on a Mac), and select the Site category. There are two checkboxes there for dependent files. Make sure both are selected. The Dreamweaver default is NOT to upload/download dependent files. You need to click Yes, if you want the dependent files to be included.

Maybe you are looking for