Upload a file without a browser ! VERY URGENT

Hi all,
i have to upload a file calling a servlet from a standalone client; inside the servlet i use the component FileUpload from Apache.
I found some example how to send the data using HttpUrlConnection class but it seems that the file parameter i try to send to Servlet is not recognize so everytime i get an error which says that in the request there no parameters.
Any good suggestion ?
Cheers.
Stefano

I GOT the solution ! please check my last message out with subject : "This the solution of my problem"
Cheers.
Stefano

Similar Messages

  • Upload file in clustered environment- Very Urgent

    Hi,
    My requirement is to upload a file onto the WebServer and also list out the file names on the front end and provide a funcionality to delete them from the server.
    Environment Details:
    -Product: WebSphere Portal
    -Type - Clustered Enviroment with 2 nodes
    -Framework: JSF
    The problem I am facing here is:
    1) I login to the application using a common URL: Say abc.com/wps/portal
    2) I dont know which node I am logged into, it can be either Primary(X1) or Secondary(X2).
    3) I click on the browse button and select a file and click on the Upload button. The file is uploaded successfully on say primary node X1.
    4) I can at that time read the name of the file and display it on screen and also select and delete it. But if I log off and login again and say I am now redirected to secondary node, I am not able to read the name of the file I uploaded as it is stored on the primary node.
    Can some body provide me a solutions to this.
    What I can think of is , While uploading the file, I will check if I am on the primary node or secondary node and Upload the file only on one node rather than uploading them on both. Say uploading only on primary node X1, Now if I am logged into primary I can just mention the directory name and upload it.
    But I f am on the secondary node I need to upload the file on the primary node using URL connection.
    Can some body tell me the feasibility of this approach ?? Also how do I upload a file on a remote machine(Logged into the secondary but putting the file onto the primary node.) ???
    Please help me this very very urgent.
    Thanks.

    Hi!
    I would simply use a network share which is accessible from both nodes as storage. This way you don't have to care to which server the file is uploaded too, because both share the same filesystem.
    If you are on windows, simply share a folder and access it from both nodes. In Linux I'd suggest using samba & mount, on solaris use share & mount.
    Another approach would be to use a database as storage.
    hth Chris

  • How to play a swf file without a browser

    I know it sounds bizzare, but not all machine have a
    compatible browser installed. I was using flash player stand alone
    version for playback of swf files. But, flash player 9 will only
    install if I have a browser installed.
    I can still play swf file on a machine with a browser, but
    the swf file does not come in with a built in playback control, so
    I have to watch the video without a playback control.
    Is there anyway I can download a standalone version of
    flashplayer, just like flashplayer 5.

    On Sat, 9 Feb 2008 16:22:40 +0000 (UTC), "Rothrock"
    <[email protected]> wrote:
    >Adobe doesn't offer a stand alone player.
    =8() Really??? And what SAFlashPlayer.exe is then?
    >The player is something that
    >comes with the offering environment and to the best of my
    knowledge has never
    >been available for download.
    Yes, because it is in Players\ subdirectory!
    > What you can do is create a brand new blank document
    with your copy of Flash
    >and publish a projector file. Then bring that projector
    over to your other
    >computer. Then you will be able to use the projector to
    play swf files.
    It's very ugly way for those who never tried to dig into
    Program Files
    subdirectory :)

  • Vendor Line Item Upolad Without TDS Portion  -- very urgent

    Hi Peers
    I want to upload the vendor Line Items. If my Vendor is a TDS Vendor then , the system is calculating TDS even for Initial Upload. Is there anyway by which i can bypass this. Plz help. Its very urgent.
    Regards
    Rajaram

    Dear Rajaram,
    Do not upload vendor open balances with TDS master updated. System is calculating TDS coz u have first updated TDS master in vendor master with liable tick on it.
    The process should be as:
    1. First upload vendor open items thru program
    2. Then upload TDS master with liable tick .
    Doing this system will start calculating TDS on future invoices. Now go to T code MASS, select Vendors under it , & deactivate liable from each master record.And then upload the balance.
    Regards,
    Ajay Gupte

  • Can I save data to a text file without the browser?

    Hello Everyone,
    I have a stand alone application that would run without a
    browser on desktop. I would like to write data to a text or
    database (MYSQL/PHP). Would it be possible for me to extend this
    functionality to a AS3 Stand Alone Application which would be
    strictly running on desktop?
    Appreciate your help.
    Thanks a lot.

    Look into AIR. It has more capabilities than Flash regarding
    to writing info to disk including an SQLite database.
    You can create AIR fils with the Flash and Flex IDEs.

  • How to upload the file without using java components?

    Hello,
    I need to upload the file using JSP, but I don't want to use java componets(such as
    jspsmart).
    Who can tell me how to realize it? This issue is very important to me,
    thanks all in advance!

    make you're own servlet using the multipartrequest from o'reilly.
    easy and simple, no jspsmart, only 1 jar file and some descent programming.
    I use it like that...

  • Hi Experts ,how to copy database schema without data ? very urgent...*****

    Hi experts,
    How to copying database without Data.
    Its very urgent..pls help out me......
    Thanks
    Vijay

    Use Transfer database objects task or script the objects out using generate scripts wizard from SSMS and apply them in the new server
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Uploading a file without using multipart request

    I want to upload a xml file from my java application(standalone, no webserver involved) ... please suggest. I am able to do it through servlet multipart request but don't want to continue with that just to bypass the browser interaction the client have to perform to choose the said file.
    thanks

    Upload to what? You need something running on the machine where the file is to be uploaded to. If it's not a web server, then you'll have to run something else. Once you decide what that is going to be, then you will have to change your program to send the XML file to that server.

  • Payables Open Interface Pgm fails without any error(Very urgent)

    All,
    I'm into an integration project where in I'm pushing Invoice doc from a third party appln to Oracle apps (11.5.10.2) thru payables open interface. The integration is smooth till today. We pushed a record today, but the concurrent neither picks up the data but failed with 'completed error' status. When I delete the same record from the interface, the concurrent runs fine. So we are sure there is some issue with the data in my record. Since concurrent is failed without any reason, from where I can get the log to know what is the actual problem with that record? Pls help me with your inputs.
    Thanks,
    Sen

    Sen,
    To enable trace, please refer to this document (skip the part about generating TKPROF, just check the concurrent request output file if more details about the error are logged after enabling trace and setting the profile option).
    Note: 453527.1 - How To Trace a Concurrent Request And Generate TKPROF File
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=453527.1
    The database log file can be usually found under $ORACLE_HOME/admin/<SID>_<hostname>/bdump directory (or from SQL*Plus, issue "show parameter background_dump_dest").
    Regards,
    Hussein

  • PARSING HTML ELEMNETS IN XML FILE?,Help please very urgent

    I am getting the input in this form
    <ul>
    <li>Strategies</li>
    <li>Planning</li>
    <li>Value</li>
    <li>Total Investment</li>
    </ul>
    I want to convert it into below format so that ContentHandler parse the HTML tages.The HTML elements are dynamic,
    contentHandler.startElement("", "ul", "ul", attrs);
    contentHandler.startElement("", "li", "li", attrs);
    contentHandler.characters(value.toCharArray(), 0, value.length());
    contentHandler.startElement("", "li", "li", attrs);
    contentHandler.startElement("", "li", "li", attrs);
    contentHandler.characters(value.toCharArray(), 0, value.length());
    contentHandler.startElement("", "li", "li", attrs);
    contentHandler.startElement("", "li", "li", attrs);
    contentHandler.characters(value.toCharArray(), 0, value.length());
    contentHandler.startElement("", "li", "li", attrs);
    contentHandler.startElement("", "li", "li", attrs);
    contentHandler.characters(value.toCharArray(), 0, value.length());
    contentHandler.startElement("", "li", "li", attrs);
    contentHandler.endElement("", "ul", "ul");
    Is their any library through which we can convert HTML tags into ContentHandler elements.
    Thanks in Advance
    Thanks
    Lakhi

    Actually i am parsing XML file,but i have HTML elements inside XML elements:
    <section id='2'><header><line>Agenda( Slide2 )</line></header>
    <line>
    <h3>Agenda</h3>
    <ol>
    <li>Overview of ABC Company inc.</li>
    <li>Defining and Measuring Employee Engagement</li>
    <li>Foresight's Survey Methodology</li>
    <li>Online Tools</li>
    <li>Standard and Custom Reporting Capabilities</li>
    <li>Action Planning and Best Practices</li>
    </ol></line></section>
    And i am using Contenthandler interface to parse,
              attrs.addCDATAAttribute("id",""+i);
                   contentHandler.startElement("", "section", "section", attrs);
                   attrs.clear();
                   contentHandler.startElement("", "header", "header", attrs);
                   contentHandler.startElement("", "line", "line", attrs);
                   contentHandler.characters(key.toCharArray(), 0, key.length());
                   contentHandler.endElement("", "line", "line");
                   contentHandler.endElement("", "header", "header");
                   contentHandler.startElement("", "line", "line", attrs);
    /*HERE I need to Generate java instruction for HTML elements as i mailed before.for elements like <li>Overview of ABC Company inc.</li>
    <li>Defining and Measuring Employee Engagement</li>...................</ol>
                   contentHandler.characters(value.toCharArray(), 0, value.length());
                   contentHandler.endElement("", "line", "line");
                   contentHandler.endElement("", "section", "section");

  • Adding to browser Very Urgent

    Hi Expert,
    Is this possible in webdynpro. Say my web dynpro application having 3 view and each view have a push button to navigate to next screen. While running the application i moved to 2 view and i am adding the page to browser favorites( add to favorite of browser). When i restart the link from favorites it should start from 2 view not from first view. Is this way or any thing similar to this scenario  possible in web dynpro.
    RK

    Hi RK,
    The only way to achieve this is adding a parameter to your DEFAULT plug and based on this parameter you start View 1 or 2 or 3.
    This parameter will then be added to your URL.
    Lets say you call the parameter "view", then your URL will look like this:
    <protocol>://<host>:<port>/sap/bc?webdynpro/sap/<application>?view=1
    Regards,
    Jos

  • Uploading the file to server from the browser using JSP

    I have facing difficulty while uploading the file from the browser using user interface to the server or to the database. As previousy i was working in coldfusion, i find it very easy there with cffile command, but i am confused how to do that in JSP
    please reply soon, as i am stuck in my project because of that
    Sarosh

    Check out http://www.jspsmart.com , They have a nice free upload api that can be used w/ JSPs or Servlets. I hear O'Reilly has a nice one too. May as well use someone elses if they've done it already.

  • Uploading a Specific file rather than browsing

    My app allows users to create a user-named jpg like so:-
    var enteredimagename:String = imagenameentry.text; 
    var file:File = File.applicationDirectory.resolvePath(('assets/images/')+enteredimagename+('.jpg'));
    However I now want to allow a user to upload that specfic file automatically to my server by clicking a button which will simply upload that file WITHOUT having them browse for it. So basically I need it set up so that when the user clicks a button whatever name they type into the imagenameentry.text will be the image that gets uploaded. For example they create an image which they name yahooimage by typing yahooimage into the imagenameentry text input component. Once a button is clicked this will save this image as assets/images/yahooimage.jpg but I want to advance this button click further so that this specific jpg is then set as the file for upload without browsing for it. All the examples I've seen use the browse function though which is not what I want.
    How can this be combined with the filereference method or some other way so that the file to be uploaded can be entered into a textinput component as described above rather than browsed for?

    Hi David,
    go through these docs: [Doc1|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71]
    If you want to uplaod file on WAS then go through this doc..
    [Doc2|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/607e9392-8167-2b10-b9a8-e0aa297e88c6]
    hpe it hlps
    Regards
    Khushboo

  • File Upload and download without asking/specifing the path

    Hi,
    I have a requirement in which user must be able to edit the Abode offline form by clicking on edit link. On clicking the link document must open (either download to some temporary location) in new window and user must be able to edit & to save the changes and also user must be able to check in or upload the file without asking for the location (source location).
    1. Is it possible to achive the similar functionality in WebDynpro ABAP?
    Like we open a document by clicking a link and we do changes and save the file and user clicks a button Check In and the document (which we edited) is uploaded to the application?
    If yes could you please provide some information.
    2. Is it possible in WDA to download a file to a temporary location and open the file for user editing & saving and also provide a option in applicaiton to upload the file from this temporary directory?
    -- In GUI frontend services we can find the temporary directory ... but is it possible to achive this functionality in WDA?
    3. Using FileDownload UI Element, we have option to download a file (Inplace option) which will open the file in the page ..but is there any possibility to read the modified contents in the Webdynpro application?
    I mean can we achive the check in functionality using this approach? If yes could you please provide some information.
    Please suggest incase this functionality can be achived using some other methods
    Thanks and best regards,
    Suresh

    Hi,
    Please check these Links,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0e10426-77ca-2910-7eb5-d7d8982cb83f
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/exporting%20context%20data%20into%20excel%20using%20the%20web%20dynpro%20binary%20cache.pdf
    Regards,
    <b>Ramganesan K</b>

  • How to upload a file on HTTP server

    Hi All,
    I am porting a flex project to HTML5 where I need to upload a file on HTTP server.
    I do google and tried to find out a solutions.
    I could see following article on HTTP upload
    https://developer.tizen.org/dev-guide/2.2.1/org.tizen.web.appprogramming/html/tutorials/w3 c_tutorial/comm_tutorial/uploa…
    Uploading Files using AJAX | Holyhoehle's Blog
    File uploads using Node.js: once again | Componentix blog
    All article make use of file object for uploading.
    Unfortunately I do not have file object but have complete file path.
    is it possible to upload a file without showing a file selection dialog or without doing drag/drop.?
    Please help me in right direction for HTTP upload.
    Regards,
    Alam

    If you have a file path, you can read file like Base64 string:
    var fileStr = window.cep.fs.readFile(filePath, window.cep.encoding.Base64).data;
    then you can send this Base64 string to server. I'm using xmlhttpReguest for sending data to server (i'm using JSON format).
    And save file on server (Base64 string).
    window.cep.fs... functions - for working with File System. (read, write ...)
    Example for working with files - demo where to find it?
    CEP APIs information - Adobe CEP APIs | Adobe Developer Connection

Maybe you are looking for

  • PDF viewer for Mate that allows creating bookmarks?

    I'm trying the Mate's document viewer Atril, but I can't see any way to make a bookmark so I can get back to a page while browsing a 1000+ page PDF. I know Okular can do it, but even with all the power in the world who wants to install all those extr

  • .exe file not working and impossible to publish

    Hello, I made a winform using ODP.Net Entity Framework and Linq to an Oracle 10gr2 through a network. It works fine under Visual Studio 2010, but when I try to use the .exe file (in release and in debug) it doesn't. It stops when try to use a Linq qu

  • MIGO against Subcontracting PO

    Hello Experts, We are doing the MIGO against subcontracting PO/SA .When we refer the reference docuemnt as PO/SA system will propose the item details from BOM against 543 movement type and actual GRN quantity which is entered by User. Where do we mak

  • Two stacked bar in one graph with Answers

    Hi, I'm trying to join into one graph four measures. So, we want to show two stacked bar, each bar with two measures. Is it possible with OBIEE tools?? TIA Javier

  • Working with Subcircuits in Multisim 10 Student Edition

    Hello Everyone, I built this circuit mainly using subcircuits.  It's supposed to display a 4-digit hexadecimal number using a single BCD to 7- segment decoder to operate 4 displays. I am using 16 switches organized as four groups of 4 switches. Each