Writing from a BLOB to a FIle on the Server

I need to be able to save the data from a BLOB column to an external file on the server, preferably in a temporary directory. Afterwards I will add a header to the file and send to the web client. I believe I know how to add the header. However, everything I have read in DBMS_LOB or UTIL_FILE describes saving a BFILE or CLOB to a BLOB, but not the reverse. Can you save from a BLOB to an external file on the server? The processing must be done on the Server.
I have been able to select TEXT from a VARCHAR column and save to a file on the server but unable to select a BLOB and save to the file.
Thank you for your help,

UTL_FILE would be the correct thing to use, but I seem to recall that it didn't work for binary files. It apparently adds CR LF data into the files when written. I am not sure if this has changed recently or not. You might try posting in the database or PL/SQL forum about UTL_FILE.

Similar Messages

  • Mac mini Server 10.6  unable to search for files on the server from desktop.

    I'm running Mac mini Server 10.6 with 15 various Apple Mac desktops 10.4 / 10.6. The problem i'm having is that i'm unable to search for files on the server from any of the desktops. I have fixed permissions and rebooted. I can perfomr a search though command - F and spotlight from the server.
    Anyone have any ideas?

    I have a Mac mini server with Mac osx 10.6.8 installed --- I have a website {UNDER CONSTRUCTION} installed on it with a REGISTERED DOMAIN NAME belizeansworldwide.com -->[DNS service w/GoDaddy]  & DSL INTERNET service  w/VERIZON --- {My server is the ONLY DEVICE CONNECTED to my VERIZON DSL router/modem}
    When I enter my DOMAIN NAME or WAN IP # in my browser(s)--> Chrome OR Safari -- i get my Verizon modem
    set-up page-->{this incl the WAN IP# as I expected}----{NORMALLY I WOULD ACCESS MY Actiontec
    modem/router via 192.168.1.1} --- While in that webpage there's an option "shared files/folders"   & clicking on that option DISPLAYS MY WEBSITE --->  {"PORT FORWARDING DID NOT RESOLVE THAT"}
    My next attempt @ a solution was through my Server's SystemPreference>Sharing>Internet Sharing
    & this the Original Object of my post ===>  "MY SHARING PANEL DOES NOT INCLUDE THE OPTION
    FOR   'Internet Sharing' among the others like CD DVD, Remote Login,Remote Management, Bluetooth Sharing, etc.etc ---- Hope this additional info will help to clarify  &/or explain my problem
    Thanks, & best regards to you & yours

  • How do I convert emails to PDF from Outlook to make a file on the PC?

    how do I convert emails to PDF from Outlook to make a file on the PC

    It is always tough for anyone when we need to save our emails into one file for future reference. You could either do it manually or can use a simple tool to Convert all your messages into one pdf file . This Single pdf file can be used if we need to read any past email. you can easily convert oulook to pdf in no time. If you are converting several email messages, you can either save them as separate files with initial layout fully intact or combine them into one big PDF document.

  • Opening Output Stream to a file on the server from Applet

    Hi,
    I am trying to write a little applet which parses a file found on the server , lets the user select some Strings then write the selected Strings to a different file on the server. I use the following code:
    String fileName = new String("LineUp");
    URL docBase = null;
    URLConnection conn = null;
    try {
    docBase = new URL(ApppletName.codeBase, fileName);
    } catch (java.net.MalformedURLException e) {
    System.out.println("Couldn't create image: "
    + "badly specified URL");
    try {
    conn = docBase.openConnection();
    } catch(IOException e) {System.out.println(e);}
    String playerString;
    try {
    conn.setAllowUserInteraction(true);
    conn.setDoOutput(true);
    conn.connect();
    PrintWriter out = new PrintWriter(
    conn.getOutputStream());
    etc..
    The problem I am having is that the getOutputStream routine for the connection object does nothing other than throw an exception (I've stepped through the code and that is all the routine actually does). The connection is actually made but no output stream can be created. I have looked at the Java Tutorial (as I am fairly new to Java) and found a spot where they tell you how to write to a file on the server, which is the example I have followed. Any suggestions? What am I missing?

    Yes, that's what I thought. It talks about writing to a URL, and you have interpreted "URL" as if it meant "file". A URL is a "Uniform Resource Locator", which is a string that identifies a "resource" on the server. Often that corresponds to a file on the server, but not always. It could be a page that is dynamically generated by a script on the server.
    Look again at that page and you will see these words: "At the other end, a cgi-bin script (usually) on the server receives the data, processes it, and then sends you a response, usually in the form of a new HTML page." What that means is, you can't just upload a file to a URL unless you have programmed the server to deal with that upload. That's part of the basic design of the HTTP protocol.
    So, unfortunately, you can't do what you want all that easily. You would have to provide some programming at the server to handle the file upload for you. In Java that means writing a servlet and getting the web server to have that servlet handle all requests to a particular URL. I suspect you don't want to get into that just yet. But if you do, any decent book on Java servlets should have an example of how to upload files like this.

  • Cannot transfer videos taken from my Canon camera(MOV files) to the iPad 4. They have previous with no problems at all. Is this an update issue?

    Cannot transfer videos taken from my Canon camera(MOV files) to the iPad 4. They have previous with no problems at all. Is this an update issue? I tried to sync them over using iTunes last night but it says that they cannot be played on the device. But they have previously

    1, you can't at the moment, though with iOS 5 in the Autumn, from http://www.apple.com/ios/ios5/features.html#photos :
    Even organize your photos in albums — right on your device
    2, by removing it from you synced from and re-syncing. Only photos taken with the iPad, copied to it via the camera connection kit, or saved from emails/websites etc can be deleted directly on the iPad (either via the trashcan icon in the top right corner if viewing the photo in full screen, or via the icon of the box with the arrow coming out of it in thumbnail view)
    3, the location of the photos that you synced to the iPad should be listed on the iPad's Photos tab when connected to your computer's iTunes.
    4, you can copy the photos from your iPad to your computer : http://support.apple.com/kb/HT4083 . You should also be able to delete them from the iPad as part of the transfer process to your computer, and it's then your choice whether to add them to your sync photo list so as to copy them back to the iPad. Copying them to your computer would allow you to organise them into folders and therefore be able to sync them back into separate albums.
    5, I don't use Dropbox either. There are some third-party browser apps in the iTunes App Store that allow you to download pages so that you can view them when offline e.g. Atomic Web (the whole page is saved within Atomic Web, it doesn't place a photo into the Photos app)
    6, deleting content should help. If you remove an app from your iPad then you also remove the content that it's got on the iPad - so if you then decide to reinstall it back onto the iPad then you will need to manually add back any content that you want in it. None of the Apple built-in apps (including Photos) can be removed from the iPad

  • Writing a file to the server using an applet...?

    Hi,
    I've been searching the web now for almost a day trying to find some help in how to do this... The biggest problem is that I'm kind of a newbie (not a total beginner, but this is the first time I've ventured into applet creation)
    What I'm trying to do is writing a simple web-page updater... i.e. This is what it should be able to do:
    1) Read HTML page and parse it so that I can change the important parts (the info on the page, not the actual HTML code) - DONE
    2) Present the information and let the user change it as (s)he sees fit - DONE
    3) generate the new HTML and write it back as a file on the server (replacing the old one) -- PROBLEM -- :)
    I think (!?) that I should be able to do this using the HttpURLConnection() POST method in addition to a PHP script on the server moving the file around once it's been uploaded. I don't, however, have a clue as to what the code should look like to accomplish something like this...(as I've never used it before, and can't seem to find sample code that would be even close to what I'm trying to do)
    How can this be done? Also, is there a simpler way of doing this?
    Thanks for taking the time to read that :)
    -NRGizeR

    as I said, I will gladly take suggestions :)
    again, I'm new to all of this and I don't really know what things in java (or any of the script languages for that matter) can or cannot do...
    Even if there is a better way, I would still know if this is solvable tho (I just want to get my head straight after banging it against this wall for the past few days) :), but as I said, any suggestions would be appreciated...

  • How to stop my Preview button from auto putting files to the server?

    Hi, I just had a tech guy to my house helping me with dreamweaver and when he left my program is working differently.  It did not automatically put files when I previewed them.  Now I can't preview anything without it putting the file to the server.  I created a contact form as a php file.  Could that have anything to do with this change?  I appreciate your assistance!

    Hi, I actually had to turn off the test button to the server to stop it.  In preferences nothing was changed.  I have checked "prompt on put" and "prompt on get".
    It only stops putting my files while I have the testing unchecked.  Thanks for your reply.  I really appreciate it.

  • Posting to a servlet from a class in a jar on the server

    I'm trying to modify a 3rd party applet that displays documents pulled from a database to post back to the server whenever the user pages up/down into a new document. The primary functionality of the applet is in place and working, the only change I am trying to make is to get the applet to post back to the server when the document being viewed changes so that we can keep track of documents open on the server side.
    The document viewer in the applet does have documented, though limited, ways to modify its functionality through properties files. I've added page up/down buttons to the correct properties file and specified button implementation classes as is dictated by their documentation. However, the problem I've run into is that since these page up/down classes are supposed to be placed in a jar file on the server and sent to the applet via the ARCHIVE parameter of the APPLET tag; these classes can not actually submit a post request back to the servlet.
    Since these classes exist outside of the world of the web app and applet, they don't have access to any of the connection, session, or cookie info in order to have an address to post back to, much less hold the correct session during the post. I tried hard-coding a URL to send the post request to for the sake of testing, but I'm still not seeing the post request being sent to the servlet. Here is the code I used to post the request, just in case it's a stupid mistake on my part.
    URL localURL = new URL("http://localhost:8080/appDir/ServletName");
                    localURLConnection = localURL.openConnection();
                    localURLConnection.setRequestProperty("method", "POST");
                    localURLConnection.setDoOutput(true);
                    Properties paramProperties = new Properties();
                    paramProperties.put("command", "nextDocument");
                    OutputStream localOutputStream = paramURLConnection.getOutputStream();
                    ObjectOutputStream localObjectOutputStream = new ObjectOutputStream(localOutputStream);
                    localObjectOutputStream.writeObject(paramProperties);
                    localObjectOutputStream.flush();
                    localObjectOutputStream.close();While searching to find out why this code isn't posting to my servlet, I've been wondering about the viability of this approach as a whole as well. Ideally if I wanted to add a post request to an event generated by the applet, then I would want to modify the applet. But since the applet is in a 3rd party jar file, I've been trying to do things their way. However, assuming I could get the page up/down action classes to post correctly, wouldn't I need some way of preserving the session that this action came from so that the right user's applet would be updated with the right document? The first thought that comes to mind on this involves writing out session/cookie data to temporary files on the server, but this sounds very ugly and insecure; plus I'd have to worry about making sure the files were uniquely named and that this unique name could be used in the page up/down classes. Is there a better way that I could be doing it?
    I apologize for the long winded explanation, but if anyone has any thoughts on either why my post request isn't going through or on the absurdity of my solution (and hopefully an alternate idea I could try), I'd be very appreciative.
    Thanks in advance.

    Well, when I've done URL connections from an applet session and cookies seem to have sorted themselves out. I'm not sure how, but there seems to be some functionality for it in the URLConnection class.
    I haven't tried setting the method like this, I always cast to HttpURLConnection and call setMethod to select POST. Your way might be right as well though.
    Have you checked the server access logs?
    It may be that your URL is rejected by the security manager for not having the same form of the hostname as the original applet retrieval.
    You should be able to get a domain name and port from the "code source" of your code, which will reference the online jar it comes from. You can generally get at this as getClass().getProtectionDomain().getCodeSource().getLocation(), or less elegantly by requesting the current class file as a resource.

  • Socket blocking on read operation while uploading zip file to the server

    I am trying to upload a zip file to the server
    Client thread creates the zip file ( of the modified files) and it even completes writing the data to the socket stream.
    Now if the server thread tries to read the same data from the stream, it blocks on read operation.
    While downloding the zip file from the server works fine.
    Thanks in advance

    You can use the URL object to upload it as multipart/form-data.
    http://forum.java.sun.com/thread.jspa?threadID=579720&messageID=3997264
    Or check out some of the file uploaders out there.
    http://www.google.nl/search?hl=nl&q=site%3Asun.com+upload+applet&btnG=Zoeken&meta=

  • How to upload a file to the server using ajax and struts

    With the following code iam able to upload a file ato the server.
    But my problem is It is working fine if iam doing in my system nd when iam trying to
    access theis application from someother system in our office which are connected through lan
    iam getting an error called 500 i,e internal server error.
    Why it is so???????
    Plz help me????????
    It is required in my project.
    I want the code to access from every system.
    My exact requirement is i have to upload a file to the server and retrive its path and show it in the same page from which we
    have uploaded a file.
    Here the file has to be uploaded to the upload folder which is present in the server.Iam using Tomcat server.
    Any help highly appreciated.
    Thanks in Advance
    This is my input jsp
    filename.jsp
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    <script type="text/javascript">
    alertflag = true;
    var xmlHttp;
    function startRequest(file1)
         if(alertflag)
         alert("file1");
         alert(file1);
    xmlHttp=createXmlHttpRequest();
    var video=document.getElementById("filepath").value;
    xmlHttp.open("POST","FilePathAction.do",true);
    xmlHttp.onreadystatechange=handleStateChange;
    xmlHttp.setRequestHeader('Content-Type', application/x-www-form-urlencoded');
    xmlHttp.send("filepath="+file1);
    function createXmlHttpRequest()
         //For IE
    if(window.ActiveXObject)
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
         //otherthan IE
    else if(window.XMLHttpRequest)
    xmlHttp=new XMLHttpRequest();
    return xmlHttp;
    //Next is the function that sets up the communication with the server.
    //This function also registers the callback handler, which is handleStateChange. Next is the code for the handler.
    function handleStateChange()
    var message=" ";
    if(xmlHttp.readyState==4)
         if(alertflag)
              alert(xmlHttp.status);
    if(xmlHttp.status==200)
    if(alertflag)
                                       alert("here");
                                       document.getElementById("div1").style.visibility = "visible";     
    var results=xmlHttp.responseText;
              document.getElementById('div1').innerHTML = results;
    else
    alert("Error loading page"+xmlHttp.status+":"+xmlHttp.statusText);
    </script></head><body><form >
    <input type="file" name="filepath" id="filepath" onchange="startRequest(this.value);"/>
    </form>
    <div id="div1" style="visibility:hidden;">
    </div></body></html>
    The corresponding action class is FIlePathAction
    package actions;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.io.*;
    public class FilePathAction extends Action{
         public ActionForward execute(ActionMapping mapping, ActionForm form,
                   HttpServletRequest request, HttpServletResponse response)
                   throws IOException, ServletException
              String contextPath1 = "";
              String uploadDirName="";
              String filepath="";
                        System.out.println(contextPath1 );
                        String inputfile = request.getParameter("filepath");
                        uploadDirName = getServlet().getServletContext().getRealPath("/upload");
                        File f=new File(inputfile);
    FileInputStream fis=null;
    FileOutputStream fo=null;
    File f1=new File(uploadDirName+"/"+f.getName());
    fis=new FileInputStream(f);
         fo=new FileOutputStream(f1);
                        try
         byte buf[] = new byte[1024*8]; /* declare a 8kB buffer */
         int len = -1;
         while((len = fis.read(buf)) != -1)
         fo.write(buf, 0, len);
                        catch(Exception e)
                                  e.printStackTrace();
                        filepath=f1.getAbsolutePath();
                        request.setAttribute("filepath", filepath);
                        return mapping.findForward("filepath");
    Action-mappings in struts-config.xml
    <action path="/FilePathAction"
                   type="actions.FilePathAction">
                   <forward name="filepath" path="/dummy.jsp"></forward>
              </action>
    and the dummy.jsp code is
    <%=request.getAttribute("filepath")%>

    MESSAGE FROM THE FORUMS ADMINISTRATORS and COMMUNITY
    This thread will be deleted within 24 business hours. You have posted an off-topic question in an area clearly designated for discussions
    about Distributed Real-time Java. Community members looking to help you with your question won't be able to find it in this category.
    Please use the "Search Forums" element on the left panel to locate a forum based on your topic. A more appropriate forum for this post
    could be one of:
    Enterprise Technologies http://forums.sun.com/category.jspa?categoryID=19
    David Holmes

  • How can I save a file in the server?

    Hello,
    I am writing a Java Web Start program that it will generate a html file, how can I save the generated file in the server, fro example, the directory where I stored my JAR files. Because right now, it will create the html file in the local client mahcine instead of the server. Can anyone tell me how can I do this? Thanks you.

    Yeah, thanks but that's not what I was trying to ask.
    I know that you can save and open a document by performing these three steps:
    1. Confirming to save a file to the Downloads folder
    2. Open the download manager by clicking the temporarily green arrow
    3. Clicking on the downloaded file
    What I would like to know is whether or not it is possible to have Firefox open a saved file ''automatically''. At the moment, if I choose to open it automatically, it is only saved to my temp folder.
    It would be great though if it was saved to my Downloads folder ''and'' opened with the respective program on my pc. Is there a way to do this?

  • How can I display the front panel of the dinamically loaded VI on the cliente computer, the VI dinamically loaded contains files, I want to see the files that the server machine has, in the client machine

    I can successfully view and control a VI remotly. However, the remote VI dinamically loads another VI, this VI loaded dinamically is a VI that allows open others VIs, I want to see the files that contains the server machine, in the client machine, but the front panel of the dinamic VI appears only on the server and not on the client, How can I display the fron panel with the files of the server machine of the dinamically loaded VI on the client computer?
    Attachments:
    micliente.llb ‏183 KB
    miservidor.llb ‏186 KB
    rdsubvis.llb ‏214 KB

    I down loaded your files but could use some instructions on what needs run.
    It seems that you are so close yet so far. You need to get the data on the server machine over to the client. I generally do this by doing a call by reference (on the client machine) of a VI that is served by the server. THe VI that executes on the server should pass the data you want to diplay via one of its output terminals. You can simply wire from this terminal (back on the client again) to an indicator of your choosing.
    Now theorectically, I do not think that there is anything that prevents use from getting the control refnum of the actual indicator (on the server) of the indicator that has the data, and read its "Value" using a property node. I have never tried this idea but it seems t
    hat all of the parts are there. You will need to know the name of the VI that holds the data as well as the indicator's name. You will also have to serve all VI's. This is not a good idea.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to Upload a File on the Server

    Hi,
    I want to upload a file on the server from Windows Mobile Application. Can anyone please suggest me a way to do so?
    Thanks in advance, 
    Saheli Sur

    Following links should also help
    http://blog.anthonybaker.me/2013/06/how-to-upload-file-from-windows-phone.html
    http://stackoverflow.com/questions/19954287/how-to-upload-file-to-server-with-http-post-multipart-form-data/20000831#20000831
    Gaurav Khanna | Microsoft .NET MVP | Microsoft Community Contributor

  • Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.

    I've been building a site in Muse successfully until today when I get this error message in the browser, publishing to business catalyst as a test bed:
    Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.
    Clearing the cache has no effect and I have checked the assets and there are no error symbols. This happened after trying a google translate code in the <head> and a HTML snippet on the master template, I've since removed it but that the last action I took that I can think may have had an effect.
    Viewing the source of the page in Safari hash;t helped other than it shows ALOT of html (including some elements i can;t relate to in my site design) and states there are three errors:
    [Warning] Invalid CSS property declaration at: ; (index.html, line 1)
    the site is Kingsdown Holiday Homes - Self Catering Chalet Rental at Kingsdown Park, Kent | Home
    I started this site in Muse CC and then recently upgraded to Muse CC 2014, and I had install issues so deleted the original program (this then forced the download of the new version which was not automatically downloading even though CC notified me that an update was required.
    Any information gratefully received.
    Thanks,
    Andrew

    Same problem here but it has nothing to do with a cellular connection.
    Created the site http://www.blackdot.com in Muse 7.4.3 with no issues. Just updated the .muse file today to Muse CC 2014 and reloaded to our web server. Now I am getting the error "Some files on the server may be missing or incorrect." when viewing the site from the latest version of all browsers (Safari, Firefox, Chrome) on a Mac and all browsers on a PC (Safari, Firefox, Chrome, Explorer), also mobile Safari on an iPad.
    My connection is wired broadband, not a mobile or wireless connection. I am not using the Muse "Upload to FTP host…" option and will not be using it. I am simply exporting as HTML and copying the files to my server. I have deleted all files from the web server and recopied the updated site with the same error result. This is the exact same procedure I used to load the initial site with the prior version of Muse.
    It does not seem like there is an existing solution to this problem although many others are experiencing it. It looks like I will need to manually edit each page to remove the error message coding from the html files. Any tips on how to strip out the alert message from the html?
    UPDATE
    For anyone else experiencing this issue, I was able to edit the .html files for my site to remove the code responsible for this alert message. If you wish to edit your .html files you must make the same edit to every .html file in your site export including the top level "index.html" and all .html files inside the "tablet" and "phone" folders if you have them.
    The coding to remove is at the bottom of each .html file:
    (Muse.assets.outOfDate.length||Muse.assets.required.length)&&alert("Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.")
    Make sure you do not remove any semicolons or braces {} when making this edit. Just remove the text shown above. You will obviously need to remake these edits if you export your site as HTML in the future.

  • 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

Maybe you are looking for

  • Error #: 409 : constant expression required at line 342

    hi all, switch( nodeClicked.hashCode() ) { case "Devices".hashCode(): showPanel_Devices(); break; case "Clusters".hashCode(): showPanel_Clusters(); break; case "General".hashCode(): showPanel_General(); scan.nas.executeNTP(scan.getIPFromHash(parentNU

  • Step by step process to upgrade EP 6.0 to EP 7.0

    Hi all, Can any one plz tell me the process of EP7.0 Upgradation? EP7.0 is newly installed on the Other System. => I need information regarding the initial System Configuration settings. => can we transport the users/groups from EP 6.0 System to EP7.

  • Ram on yosemite

    hi all just been thinking lots of folk have told me i should have got more ramwhen i purchased my macbook pro ret late 2013( i  have on 4gig on macbook pro ret) although i have opend, for test reasons, all the applications at the same time and the ac

  • How do I get my apps to download I have a blank screen

    How do I get my apps to download I have a blank screen

  • Mark Rittman's new websites

    Hi everyone Mark Rittman and a colleague, Jon Mead, have started a new venture called Rittman Mead Consulting. Their aim is to become the No 1 supplier for high end business intelligence architecture, design and training resources in the Oracle marke