Download files from web to client

Hi,
I am trying to download txt file from the web and save it on the client using webutil_file_transfer.url_to_client. I am experiencing some problem which is connected to web util and says: The WEBUTIL object group is not available in this Form. WEBUTIL can not work.WebUtil error: oracle.forms.webutil.filetransfer.filetransfer.
Can somebodey suggest what is the problem or any other solution for downloading files from url and saving them on the client?

OK guys, i have done everything and web util finally (probably) works fine because i don't receive any error messages. Despite this i still cant download the file on the client machine.
ps. I don't receive any error message
here is the sample code , so you can try it if you want and suggest something
DECLARE
flag BOOLEAN;
BEGIN
flag :=
webutil_file_transfer.url_to_client
('http://igor.pandurski.googlepages.com/CIIT-Molika-2007-WebServicesforInsur.pdf',
'C:\1\'
IF flag
THEN
MESSAGE ('DONE');
MESSAGE ('DONE');
ELSE
MESSAGE ('NOT DONE');
MESSAGE ('NOT DONE');
END IF;
END;

Similar Messages

  • Errors when downloading files from web sites

    I cannot download files from Firefox anymore on my home computer. I click on the download link and it takes me to another page that is blank. I can download just fine w/o any problems from my work computer, download box/window appears just fine. I'm using the same Windows 7, Firefox 8.0 program and same website that gives me the error message from my home computer. Is there a pop-up blocker, cookie or plug-in that I need to turn off/on? How do I enable downloads so I can save to my home computer?

    Clear cache and cookies and try again. Also, check your firewall permissions for Firefox 8

  • How to download file from server to client's local ??

    How to download a file from the server to the client's local machine in a particular folder without users intervention ie. 'Save As" prompt of the browser should be avoided and if the client clicks on "Download" button, the file should get automaticaly downloaded to say, "c:/reports/' on his/her local machine. This is for Java based web appliaction.

    http://jguru.com/faq/view.jsp?EID=10646

  • Download file from web page...?

    hi,
    how would i enable users to doenload an excel file from my web page. i know it is something along the lines of:
    <a href="records.xls"></a>
    the records.xls is in the same directory as my html pages and still doesn't seem to wok. someone mentioned it may have something to do with the file being on my hard drive and needs to be placed on the network....make any sense?
    please help me out if you have any ideas..i'm totally lost.
    regards,
    jeena

    Below is the doGet method, which is called from another servlet, with all the html stuff. i've taken out some parts of the code since its of no relevance.
    public void doGet(HttpServletRequest req, HttpServletResponse res)
                                       throws ServletException, IOException {
    try{
         log (" ENTERED DOGET IN LECTURE!!!!");
              res.setContentType("text/html");
              PrintWriter out = res.getWriter();
    Enumeration values = req.getParameterNames();
              //while(values.hasMoreElements()) {
                   String name = (String)values.nextElement();
                   String value = (req.getParameterValues(name)[0]);
    if(name.compareTo("submit") != 0) {
    if (value.equals("Enter/Edit")) {
    out.println("<A HREF=records.xls>Download Attendance Records</A>");//TO DOWNLOAD FILE
         catch(SQLException e) {
              log (e.toString());
    }

  • Download file from web problem

    Hello,
    I want to download image files from my webserver to the local machine.
    The source is: http://www.mysite.com/files/myfile.gifThe destination is: c:\I made the code below, but I always got File Not Found Error
       URL srcUrl = new URL(src);
       FileInputStream fi = new FileInputStream(srcUrl.getFile());
       URL dstUrl = new URL(dst);
       FileOutputStream fo = new FileOutputStream(dstUrl.getFile());It seems that the getFile() function removes the "http://www.mysite.com" from the complete URL.
    Any idea?
    Thanks

    By the way, if a method doesn't behave like you think it does, then it might be time to go and read it's documentation. Because omitting the host information is exactly what it says it will do.

  • User download files from web site

    I have files I want to allow users to download from my site.
    Problem is that I just don't know how to do that. And does
    Dreamweaver make that it possible?

    Deja vu all over again...
    To force a download without using Zip files, you will need to
    run a server
    side script - the flavor depends on which programming
    languages your server
    supports.
    This one uses php.
    http://elouai.com/force-download.php
    Otherwise, search www.HotScripts.com for other Forced
    Download scripts that
    will work on your server.
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "calc guy" <[email protected]> wrote in
    message
    news:f9nib8$mlt$[email protected]..
    > I have files I want to allow users to download from my
    site. Problem is
    that I just don't know how to do that. And does Dreamweaver
    make that it
    possible?

  • Download Files from Server to Client

    I have a flex application that sends data to a php page that
    then generates a pdf file and returns the name of that file to the
    application. All of that works fine. The problems start when I try
    to then download that file to the client.
    This is the Flex client code:
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.rpc.events.ResultEvent;
    [Bindable]
    private var pdfFiles:ArrayCollection;
    private function requestPDFHandler (event:ResultEvent):void
    if( event.result.Files == null ) { /* Table is empty */
    /*Do Nothing*/
    }else if( event.result.Files.File is ObjectProxy ) { /*
    Table has only one record */
    pdfFiles = new ArrayCollection( [event.result.Files.File] );
    }else { /* Table has many records */
    pdfFiles = event.result.Files.File as ArrayCollection;
    downloadPDF();
    private function getPDF():void {
    requestPDF.send();
    import flash.display.Sprite;
    import flash.events.*;
    import flash.net.FileReference;
    import flash.net.URLRequest;
    import flash.net.URLRequestMethod;
    private function downloadPDF():void {
    //trace (pdfFiles.list.getItemAt(0).FileName);
    var DOWNLOAD_URL:String = "
    http://" + dbLoc + "/PDF/tmp/" +
    pdfFiles.list.getItemAt(0).FileName;
    //trace(DOWNLOAD_URL);
    var fr:FileReference = new FileReference();
    var request:URLRequest = new URLRequest();
    request.url = DOWNLOAD_URL;
    //configureListeners(fr);
    fr.addEventListener(Event.CANCEL, cancelHandler);
    fr.download(request,"Product List.pdf");
    private function cancelHandler(event:Event):void {
    trace("cancelHandler: " + event);
    ]]>
    </mx:Script>
    <mx:HTTPService id="requestPDF" url="
    http://{dbLoc}/PDF/MakePDFDoc.php"
    method="POST" result="requestPDFHandler(event)">
    <mx:request xmlns="">
    <ProdGroupID>{cboProdGroup.selectedItem.ID}</ProdGroupID><CurrencyID>{cboCurrency.selecte dItem.ID}</CurrencyID>
    </mx:request>
    </mx:HTTPService>
    <mx:Button x="574" y="804" label="Save as PDF"
    width="144" height="34" fontFamily="Verdana" fontSize="12"
    cornerRadius="12" id="btnSavePDF" enabled="true"
    fillColors="[#33332d, #33332d]" fillAlphas="[1.0, 1.0]"
    color="#ffffff" textRollOverColor="#808080"
    textSelectedColor="#808080" borderColor="#000000"
    mouseUp="getPDF()"/>
    When the button is clicked it sends to the php page fine and
    recieves the name of the file. When it gets to
    "fr.download(request,"Product List.pdf");" in the downloadPDF
    function, the 'fr:FileReference' object gives me this error -
    "Error: Error #2037: Functions called in incorrect sequence, or
    earlier call was unsuccessful.". I don't understand what is causing
    the error. Any suggestions?

    Basically, you can try to:
    1. create a ServerSocket to listen to client request.
    2. once a request is received create a thread to handle that connection.
    3. find out what file does the client want.
    4. read the file into a byte array.
    5. flush the byte array back to the socket back to the client.
    6. once the client receive the content, start writing it to disk.
    You have to look into classes like ServerSocket, Socket, DataInputStream, DataOutputStream, FileInputStream, FileOutputStream, and etc.
    There are other ways to do it.
    Hope this helps.

  • Cannot download files from web sites using 4.0, and slower. Do I need to prep my Mac in any way prior to installing 4.0?

    I use browser to grab small game programs off various websites, which then run on apps I have installed. When I attempt to download these files in version 4, I get an "unknown error has occurred" pop-up, & no file. This has not been an issue w/previous version.
    Am I required to change any system prefs after installing 4.0? I have de-installed and gone back to previous system until I know what the issue is... odd, all other upgrade installs have been easy and simple.
    4.0 also runs notably slower.
    thx/ASAubry

    I use browser to grab small game programs off various websites, which then run on apps I have installed. When I attempt to download these files in version 4, I get an "unknown error has occurred" pop-up, & no file. This has not been an issue w/previous version.
    Am I required to change any system prefs after installing 4.0? I have de-installed and gone back to previous system until I know what the issue is... odd, all other upgrade installs have been easy and simple.
    4.0 also runs notably slower.
    thx/ASAubry

  • Help required with downloading files from inside WEB-INF folder

    I am working on a web application and I have an upload script which uploads different files to a foler called 'uploads' . To stop users from accessing the folder content I have put it in the /WEB-INF/.
    In my JSP file, I used to link to the uploaded files like this before for users to download them :
    if(filesListIterator.hasNext()
    files = (FilesBean)filesListIterator.next();
    <tr><td><a target="_new" href="<%=files.getFileName()%>">"<%=files.getFileName()%></a></td></tr>
    }I need to know how to alter the above link to make it access/download files from the /WEB-INF/uploads/ while still restricting direct access to the files.
    Thanks
    Message was edited by:
    topiwal

    Anything under WEB-INF is not directly accessible via the browser/ client. You could try defining the JSP/ Servlet inside web.xml deployment descriptor and see if you can access the file from there.
    I think a better way to accomplish this would be to keep the file outside WEB-INF , and use other techniques to protect the folder that contains the file - for example password-protection, or defining a .htaccess file and serving a 403 Forbidden error.

  • Uploading and downloading files from a web app (Urgent!!)

    Hi everyone:
    I'm developing an application in PL/SQL to upload and download files from an HTML webpage. I congured the document table and the parameters necessary in the DAD of my application.
    when I upload the file using my webpage that file info is automatically uploaded to the doc table. This is as far as I have gotten.
    I need to do the following:
    - Place the uploaded file into a column in another table in my database as part of a text message (think of it as an email message), and delete the file from the doc table (as this is thought to be a temp table that holds the file when uploaded from my webpage)
    - Retreive the file so that it can be downloaded from another web page.
    The file can be a PDF, WORD DOC, etc...
    I now that I can do this with InterMedia but I haven't figured out how :(
    Can anyone please point me to an example or some documentation that can guide me through the process.
    DB VERSION: 8.1.7
    IAS VERSION: 1.0.2.2
    Thanks,
    Carlos Abarca

    The idea was for you to look at the code and get an idea of how to access the BLOB in the document table. IF you look at the procedure
    insert_new_photo( new_description IN VARCHAR2,
    new_location IN VARCHAR,
    new_photo IN VARCHAR2 )
    It shows how to access the blob that is stored in the document table. You can then copy this blob to your own table using the DBMS_LOB package.
    Hope this helps,
    Larry

  • Since I downloaded version 4 of Firefox, I'm having the following problems: Extremely slow at loading all web sites, can't view PDF files from web sites, and lots of unresponsive script messages. How can I fix this?

    I downloaded version 4 of Firefox this week and have been having problems since. Firefox is now extremely slow at loading all web sites. Trying to view PDF files from web sites crashes Firefox. I'm getting lots of unresponsive script messages. How can I fix this?

    I downloaded version 4 of Firefox this week and have been having problems since. Firefox is now extremely slow at loading all web sites. Trying to view PDF files from web sites crashes Firefox. I'm getting lots of unresponsive script messages. How can I fix this?

  • Download file from the web

    Hey,
    I'm struggling to download files from the web.
    The first approach I though of was simply opening the url in Safari, but it would just open the file, not download it.
    Then there is an application called "URL Access Scripting", but I can't figure out how it works.
    That might sound stupid, since it has only a download and an upload command, but they do not work.
    The download function asks for a file specification, what the #$^& is that?
    I tried supplying a file, but to no avail.
    For obvious reasons I can't make an alias of a not yet existing file, so what do I put in there?
    It seems file specification is a deprecated format.
    My last resort was running curl in a shell script, which works, but that feels hackish.
    Is there any good way to do this?

    Hi pepsel,
    Let's take an example. Suppose that you want to download “UltiCalc Mac 2.5” (freeware) from [this Web page|http://www.apple.com/downloads/macosx/games/utilities/ulticalcmac.html]. You can proceed as follows:
    --BEGINNING OF SCRIPT
    set theURL to "http://wsidecar.apple.com/cgi-bin/nph-reg3rdpty2.pl/product=23023&cat=25&platf orm=osx&method=sa/ulticalc_mac.zip"
    set theFile to "/Users/pierre/Desktop/My_download.zip" -- same extension as the file to download
    tell application "URL Access Scripting" to download theURL to theFile
    --END OF SCRIPT
    Of course, you should replace “pierre” with the name of your own home folder.
    Hope it can help.
    Message was edited by: Pierre L.

  • Using AMP to download and save FLV files from web sites?

    I thought I had heard months ago that this new media player was going to allow you to download and save the FLV files from web sites like YouTube and others, where a direct download while possible, isn't the easiest thing to currently do. But I don't really see any way in this new media player to download and save files from web sites....it's plenty willing to play them if they're already saved on your hard drive, but I thought one of the reasons for Adobe building this was to make it easier to get them in the first place?

    I'd have to agree. This is one of the most useless products I have seen from a company of this standard. Why they continue to provide this product as an example of what can be done with AIR, is bewildering.  Myself and others have posted over and over again that the player deletes the saved movies at some random time, an hour or two hours after they appear to be saved.
    What is the point of having a 'saved' icon the CD ICON if that movie will be deleted   FOR NO BLOODY reason.  I just wasted 400 mb of my quota dowloading moves 3 times...!! just to realise that the application deletes them from the VERY CACHE that it copies them to.
    Adobe, if this is what I can expect while trying to view the tutorials for FLEX what will the development experience be like. Myself and others are fed up with posting this bug to Adobe, just to be ignored. How much stress to do you want on your servers before you WAKE UP.
    I have been in 4 meetings over the last 2 weeks and everyone has remarked about the 'experience' trying to view these tutorials.
    Wake up to yourself. If you want to charge $500 for FLEX then atleast fix this crappy player.
    PS. I note that this player is supposedly built with Flex and that the list control truncates rather than wraps, in addition, no 'tool tips',  dates are not localised, the video keeps unpausing itself each time I return from the downloads page, no settings for where files should be cached. Occasionally the underlining (grey) window bar appears over the top of the flash window edge.  I've used the application for an hour or so...
    Where is the alternative... I'll be glad when Adobe get some real competition.. so that they pay attention to input.  A big wastefull site if all support does is read and ignore posts.!!!!!!!!!!!!

  • Safari will not open or download pdf files from web?

    Safari will not open or downlaod pdf files from web? IS there a setting, or something else to do this?

    Open browser preferences
    ex Safari>Preferences>Extentions   and un-enable any ext that mabe interferring , ex divX
    or open Help> installed Plug-ins and remove Adobe Acrobat.
    if still a problem
    Quit Safari.
    In the Finder, select Go ▹ Go to Folder from the menu bar, copy the text on the line below into the box that opens, and press return:
    ~/Library/Preferences/com.apple.Safari.plist
    A Finder window will open with an item selected. Move the selected item to the Desktop, leaving the window open.
    Launch Safari and test. Its settings will have reverted to what they were they first time you launched it. If it works as expected, recreate the settings and delete the item you moved to the Desktop. Otherwise, quit Safari again and put the file you moved back where it was, overwriting the newer one created in its place.

  • How to download file from application server

    Hi Experts,
                  I developed report and execute in background mode. for this i used Open dataset transfer and close dataset . i got the requried output . But in this case user want downloaded file on presentation server so can anyone tell me How to download file from application server?
    i know it is possible through Tcode CG3Y. but i want code in program.

    This code will download a file to your Client package by package, so it will also work for huge files.
    *& Report  ZBI_DOWNLOAD_APPSERVER_FILE
    REPORT  zbi_download_appserver_file.
    PARAMETERS: lv_as_fn TYPE sapb-sappfad
    DEFAULT '/usr/sap/WBP/DVEBMGS00/work/ZBSPL_R01.CSV'.
    PARAMETERS: lv_cl_fn TYPE string
    DEFAULT 'C:\Users\atsvioli\Desktop\Budget Backups\ZBSPL_R01.CSV'.
    START-OF-SELECTION.
      CONSTANTS blocksize TYPE i VALUE 524287.
      CONSTANTS packagesize TYPE i VALUE 8.
      TYPES ty_datablock(blocksize) TYPE x.
      DATA lv_fil TYPE epsf-epsfilnam.
      DATA lv_dir TYPE epsf-epsdirnam.
      DATA ls_data TYPE ty_datablock.
      DATA lt_data TYPE STANDARD TABLE OF ty_datablock.
      DATA lv_block_len TYPE i.
      DATA lv_package_len TYPE i.
      DATA lv_subrc TYPE sy-subrc.
      DATA lv_msgv1 LIKE sy-msgv1.
      DATA lv_processed_so_far TYPE p.
      DATA lv_append TYPE c.
      DATA lv_status TYPE string.
      DATA lv_filesize TYPE p.
      DATA lv_percent TYPE i.
      "Determine size
      SPLIT lv_as_fn AT '/' INTO lv_dir lv_fil.
      CALL FUNCTION 'EPS_GET_FILE_ATTRIBUTES'
        EXPORTING
          file_name      = lv_fil
          dir_name       = lv_dir
        IMPORTING
          file_size_long = lv_filesize.
      "Open the file on application server
      OPEN DATASET lv_as_fn FOR INPUT IN BINARY MODE MESSAGE lv_msgv1.
      IF sy-subrc <> 0.
        MESSAGE e048(cms) WITH lv_as_fn lv_msgv1 RAISING file_read_error.
        EXIT.
      ENDIF.
      lv_processed_so_far = 0.
      DO.
        REFRESH lt_data.
        lv_package_len = 0.
        DO packagesize TIMES.
          CLEAR ls_data.
          CLEAR lv_block_len.
          READ DATASET lv_as_fn INTO ls_data MAXIMUM LENGTH blocksize LENGTH lv_block_len.
          lv_subrc = sy-subrc.
          IF lv_block_len > 0.
            lv_package_len = lv_package_len + lv_block_len.
            APPEND ls_data TO lt_data.
          ENDIF.
          "End of file
          IF lv_subrc <> 0.
            EXIT.
          ENDIF.
        ENDDO.
        IF lv_package_len > 0.
          "Put file to client
          IF lv_processed_so_far = 0.
            lv_append = ' '.
          ELSE.
            lv_append = 'X'.
          ENDIF.
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
              bin_filesize         = lv_package_len
              filename             = lv_cl_fn
              filetype             = 'BIN'
              append               = lv_append
              show_transfer_status = abap_false
            TABLES
              data_tab             = lt_data.
          lv_processed_so_far = lv_processed_so_far + lv_package_len.
          "Status display
          lv_percent = lv_processed_so_far * 100 / lv_filesize.
          lv_status = |{ lv_percent }% - { lv_processed_so_far } bytes downloaded of { lv_filesize }|.
          CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
            EXPORTING          "percentage = lv_percent - will make it fash
              text = lv_status.
        ENDIF.
        "End of file
        IF lv_subrc <> 0.
          EXIT.
        ENDIF.
      ENDDO.
      "Close the file on application server
      CLOSE DATASET lv_as_fn.

Maybe you are looking for

  • Maintain license key for third party product in sap PI

    HI, I have install third party product in SAP PI SLD for an application, How can i specify the key or license agreement for the third party product. Where i have to maintain the key for Third party product in SAP PI. Regards Niraj

  • Importing photos workflow question

    Many apologies for asking what's probably been asked many times, but not knowing the correct phrasing, I had a hard time finding it. I'm a new mac user, about 1 month into it, and a 1 week Aperture user, coming from Lightroom on a PC. I have about 10

  • Can't open an attachment rec'd via latest 'Best ev...

    I upgraded last week, having be told by some of my friends that this latest Mail seems to be working i.e. it's no longer appearing to be a Beta version. But I'm still experiencing little niggles in many areas. The latest is that I've received an emai

  • Bdc: selection screen error

    HI, In the bdc program, after uploading a file in the selection screen using parameter selection, the screen gets refrehed and returns to the selection screen with no further action. How do I solve this error?

  • Can I forward a MMS dialogue (multiple participants) on iPhone 5?

    I have a MMS dialogue consisting of 5 participants and multiple bubbles that I would like to forward to someone with an iPhone.  When I try to do so, every entry/correspondence is merged into one large bubble and it is virtually impossible to disting