Automatically download client file to CF Server

I have a scenario where I need to automatically download a client CF server without using a browser. WebDAV redirector won't do what I use https. I wrote a ColdFusion web service for managing the file once I understand, but I have no idea how to do to consume this service from the client without a user openning a browser. Here's my simple web service code...

< cfproperty >
< cffunction = "uploadFile" access returntype = name "remotely" = "Sub" hint = "Secure Web Service to process the upload of a file" >
< name cfargument = "appUserID" type = "string" required = "yes" >
< name cfargument = "appPassword" type = "string" required = "yes" >
< cfargument = "uploadFile" type name = "binary" required = "yes" >
< name cfargument = "workgroupID" type = "string" required = "yes" >
< cfset uploadDir = #APPLICATION.defaultRootValue # & ' / filestore/groups / "& #workgroupID # & ' / ' >"
< cffile action = "upload" filefield = "" #uploadFile # "destination =" #uploadDir #">"
< / cffunction >
< / cfproperty >

I found a solution - and Yes, the best things in life are free! You should check out a tool called curl.
http://curl.haxx.se/

curl is a command line tool for transferring files with URL syntax, support for FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, FILE and LDAP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP download, HTTP form from upload, proxies, cookies, user + authentication password (Basic, Digest, NTLM, Negotiate, kerberos...), recovery of file transfer, proxy tunnel and a bus of other useful stuff. Text CURL

Tags: ColdFusion

Similar Questions

  • I want to stop windows automatic download of files upgrade. It eats my internet time and money

    I want to stop windows automatic download of files upgrade. It eats my internet time and money. It serves much purpose in home edition when working on simple office work. According to me, that it is only required when the server is used and a lot of office are carried out. Help, please

    Click Start / Control Panel / Windows Updates / corn on the left, click on 'change settings '. In the drop-down list, select never "Find updates".

    This will stop the automatic download and installation of updates, but still allow you to manually run Windows Update.

    J W Stuart: http://www.pagestart.com

  • Pop-up window automatically downloaded a file to my laptop. I deleted the file in my downloads, but how can I be sure I have removed completely?

    Pop-up window automatically downloaded a file to my laptop. I deleted the file in my downloads, but how can I be sure I have removed completely?

    If you know what has been downloaded, I would use EasyFind:

    https://iTunes.Apple.com/us/app/easyfind/id411673888?MT=12

    In addition, I would like to launch Malwarebytes Anti-Malware for Mac:

    https://www.Malwarebytes.org/Mac-download/

    These steps will not guarantee that all items have been reomoved.  This is possible only by backing up your data, erase the HARD drive and then reinstalling the OSX and your data.

    Ciao.

  • Download the file from the server

    Hey there, how I start the download function in ActionScript3.0. ?

    (Where a dialog box will open to let my users to download a file from my server)

    import flash.net.URLRequest;
    import flash.net.FileReference;
    
    download_btn.addEventListener(MouseEvent.CLICK , downloadFunction);
    function downloadFunction(event: MouseEvent):void {
        var req:URLRequest = new URLRequest('http://www.yoursite.com/downloads/filename.zip');
        new FileReference().download(req);
    }
    
  • Automatic download of files

    Hello!

    I habe follows the question - if some of my friends sent me a file - it automatically starts to download!

    How can I turn off this feature?

    Uncheck the option: "automatically accept the received files."

    http://community.Skype.com/T5/Windows-desktop-client/got-a-problem-when-download-some-files-from-sky...

  • Open / download the file from the server db

    Hello guys!

    I have spent ages to find a way to open respectively to download a file from my db server.
    I use a stored procedure to write an xml file in a directory with an alias "DIR_EXCEL_EXPORT". (This directory is created in the database to reference the folder on the db server. The folder is/tmp).

    Can you please give me an example how to download the file created automatically once the file is created or at least how to open it manually using a button in the apex?

    I appreciate your efforts and your ideas on this topic.

    Best regards

    SEB

    Hello

    Make sure that your button attributes
    Target "Page of this Application.
    Page & APP_PAGE_ID.
    Defined for example application DOWNLOAD_XML

    Then check that your APA process is conditional on demand DOWNLOAD_XML

    Also, make sure that DAD user have read privilege to the directory that you are using

    Kind regards
    Jari

  • How to download the file selected from Server?

    Nice day

    I use Jdeveloper version 11.1.2.3.0.

    My requirement is like, I have a directory on the server that contains some files. My end user wishes to select a specific file and then download it to the local computer. you could say as a replacement of FTP through my application. Is it possible to do?

    Best regards,

    Julien

    First to get the entire list of files from the server

        Directory of the file = new File (path);
        get all files in a directory
        File FListe [] = directory.listFiles ();

    then use this list to fill a list of choices on the page to display to the user

    Blog of Ashish Awasthi (Jdev/ADF): fill the values programmatically in a body af:selectOneChoice ADF

    download it and then (see sharing above link)

    Thank you

  • Download a file from the server

    Hi all

    I use ADF 10 g and help me please an example for downloading a file server using ADF 10 g


    Thanks in advance
    Kind regards

    Joseph Joby

    Hello

    I typed:

    ADF 10 g "download file".

    in Google to find

    http://jdev1013.blogspot.com/2009/08/file-upload-and-download-in-TopLink-ADF.html

    Depends on what business you would you need to change the references of TopLink for example ADF BC or WS. Downloading files is handled in a method

    public static Sub downloadFile

    Hope this helps

    Frank

  • How to download any file to a server directly from office to help

    Hello
    Is it possible to upload any file to a server (Linux / Windows) directly from the (Windows) desktop using vnc or PuTTY, instead using any tool like filezilla ftp.

    Again, this has nothing to do with the Oracle database.

    ----------
    Sybrand Bakker
    Senior Oracle DBA

  • Download the file to a server does not (other work browsers)

    After uprading to Win7 and FF 7.0.1 file download from our intranet server has stopped working. IE 9 and 14 chrome has no problems. When I try to open this URL for exmple:

    https://WWWEDU.Oulu.fi/intra/?Act=58 & rnum = 26241

    I had only an error page:

    Corrupt content error
    The page you are trying to view cannot be shown because an error in the transmission of data.
    The page you are trying to view cannot be shown because an error in the transmission of data.
    Contact the web site owners to inform them of this problem.

    I tested with two separate computers and got some of the similar reports of students.

    If it is the problem in the headers, etc. from the server, I would be very happy to know that, too!

    Thank you very much
    Eetu Pikkarainen

    You can get this error if there are several redirects places send via the HTTP response headers.

    Firefox allows not only for security reasons.

    • bug 681140 - content corrupted error due to multiple instances of the Content-Disposition header field
  • Download the file from the server db at the local level

    Hi all

    After the implementation of the procedure, I found here [http://docs.oracle.com/cd/E10513_01/doc/appdev.310/e10497/up_dn_files.htm#CHDECDAJ] I'm trying to use a different procedure to download directly from an oracle directory which is
    PROCEDURE DOWNLOAD_PUBLIC_DIR (v_file_name varchar2) as
         v_length     number;
        bf BFILE;
        Lob_loc     blob;                     
        v_mime          varchar2(255);
        vexists BOOLEAN;
         vfile_length NUMBER;
         vblocksize NUMBER;
    begin
         UTL_FILE.FGETATTR('PUBLIC_DIR',v_file_name,vexists,vfile_length,vblocksize);
         if vexists then
              DBMS_LOB.createtemporary (Lob_loc, TRUE, DBMS_LOB.SESSION);
              bf := BFILENAME('PUBLIC_DIR', v_file_name);
              DBMS_LOB.FILEOPEN(bf,dbms_lob.file_readonly);
              DBMS_LOB.LOADFROMFILE(Lob_loc, bf, DBMS_LOB.GETLENGTH(bf));
              DBMS_LOB.FILECLOSE(bf);
             owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
             htp.p('Content-length: ' || v_length);
             htp.p('Content-Disposition: attachment; filename="' || v_file_name || '"');
             owa_util.http_header_close;
             wpg_docload.download_file( Lob_loc );
         end if;
     end;
    then run it
    GRANT EXECUTE ON DOWNLOAD_PUBLIC_DIR TO PUBLIC
    In my apex application, I create an element display only and on the label, I try to use this in the label
    <a href="DOWNLOAD_PUBLIC_DIR?v_file_name='myFileOnDBServer.xls'">Download</a>
    or even that in the source (as I already do in other parts of the application)
    select '<a href="pspappweb.DOWNLOAD_PUBLIC_DIR?v_file_name='||'myFileOnDBServer.xls'||'">Download</a>' from dual
    When I click on the link in the message to
    Not Found
    The requested URL /pls/apex/DOWNLOAD_PUBLIC_DIR was not found on this server.
    I'm obviously missing?
    Thank you all.
    Alex

    Published by: OraclePSP on November 29, 2012 5.58

    Hi Alex,

    This is probably because of the function of validation of request, in your mod_plsql DAD, EPG or Apex listener config. Beware of the wwv_flow_epg_include_modules.authorize. You can enable additional entry points by crushing the procedure APEX_040200 wwv_flow_epg_include_mod_local. It is described in apex/core/wwv_flow_epg_include_local.sql.

    Kind regards
    Christian

  • Download the file to the server / others cannot see

    Hello!

    When I publish my captivate (for a network space) project and upload them to the server, I am able to view the file .html very well.  However, if we try to see on another computer, what we see is a screen empty.  Who has access to the folder network also cannot see.  It is only visible on my computer!  Any ideas?

    For the record, I work with Captivate 5 on a Windows 7 computer.  We all use the same operating system and the browser.

    I tried this fix: http://blogs.adobe.com/captivate/2010/08/unable-to-open-exe-files-published-from-adobe-cap works - 5.html, but it did not work.  (In fact, now I see a white screen when I try to visualize the project online!)

    I appreciate any help!

    Thank you.

    Thank you, Sara.

    You have an animation of text in your project? If so, can you please remove the text animation and re - publish your project and check if it is accessible from the network location. If it works, follow these steps:

    1. install the patch CP5 from here: http://kb2.adobe.com/cps/881/cpsid_88142.html

    2 restart the Captivate, open your project, including text animation

    3 to republish your project and check if it works from the network location.

    Please let me know the results.

    Thank you

    Sushma

  • Download the file of the sftp server: 0 bytes. Why?

    I have a function to download a file from the server international:

    ' Public Sub downloadFileListener (FacesContext facesContext, OutputStream outputStream) throws IOException,.

    JSchException,

    {SftpException}

    AdfFacesContext context = AdfFacesContext.getCurrentInstance ();

    Card vScope = context.getViewScope ();

    FacesCtrlHierNodeBinding viewScopeRow = (FacesCtrlHierNodeBinding) vScope.get ("qcDocSelectedRow");

    System.out.println ("selected line:" + viewScopeRow);

    If (viewScopeRow! = null & & viewScopeRow.getAttribute ("DocAddr")! = null) {}

    String pathBind = viewScopeRow.getAttribute("DocName").toString ();

    String addr = viewScopeRow.getAttribute("DocAddr").toString ();

    System.out.println ("addr:" + addr);

    Filed file = new File (addr);

    FileInputStream fis;

    Byte [] b.

    try {}

    String SFTPHOST = "10.197.50.234";

    int SFTPPORT = 22;

    String SFTPUSER = "wrrw;

    String SFTPPASS = "rwwrwr";

    String SFTPWORKINGDIR = "/ var/www/html/QC/QC01000243/100039287 /";

    A session = null;

    Channel = null;

    ChannelSftp channelSftp = null;

    System.out.println ("AGAIN!");

    JSch jsch = new JSch();

    session = jsch.getSession (SFTPUSER, SFTPHOST, SFTPPORT);

    session.setPassword (SFTPPASS);

    java.util.Properties config = new java.util.Properties ();

    config.put ("StrictHostKeyChecking", "no");

    session.setConfig (config);

    session. Connect();

    Channel = session.openChannel("sftp");

    Channel.Connect ();

    System.out.println ("conectou");

    channelSftp = channel (ChannelSftp);

    System.out.println ("SFTPWORKINGDIR:" + SFTPWORKINGDIR);

    channelSftp.cd (SFTPWORKINGDIR);

    System.out.println ("estas aqui!");

    ubyte [] buffer = new byte [1024];

    FIS = new FileInputStream (SFTPWORKINGDIR);

    Buffer fis = new buffer (channelSftp.get ("macaco.gif"));

    int n;

    While ((n = fis.available ()) > 0) {}

    System.out.println ("here is");

    b = new ubyte [n];

    result int = fis.read (b);

    outputStream.write (b, 0, b.length);

    If (result == - 1).

    break;

    }

    } catch (IOException e) {}

    e.printStackTrace ();

    System.out.println ("exception:" + try ());

    }

    outputStream.flush ();

    }

    }

    The file exist in the server. However, when I try to get the file have 0 bytes.

    What's wrong?

    Pls help me, my version jdev is 11.2.4.0

    Hello

    Just check your code again. Here are a few references. Just hardcode the path and try to debug the java method.

    SFTP for Java examples

    JSch - Java secure channel - examples

    Thank you
    Amey

  • Automatic download SASS/CSS function

    Hello

    We are currently developing our lokal of Web sites on a serverdrive and you using Dreamweaver FTP, with automatically download the file on the Web server (DEV-Server online).

    When save us the files on our local workspace, its a quick and easy css code workflow and check directly in the browser.

    Now we want by SASS and use a compiler that generates the CSS, it goes outside Dreamweaver, so the "automatic uload-on-save-features -" in the FTP definition dosent know that the CSS File New ist generate via SASS.

    Y at - it an Option to compile SASS > CSS in Dreamweaver files directly, while he knows the changes in css/sass files and automatically put it on the server?

    thanxs for Feedback...

    welcome them

    RENÉ

    Currently, there is no option to compile SASS directly in Dreamweaver. It's something that was often asked, so it may be added to a future release on Dreamweaver. For the moment, however, you must manually download.

  • How to download a file using af: inputFile in Oracle ADF

    Can someone tell me please how to download the file to the server using af: inputFile in Oracel ADF. I searched for this topic and found, we can use the following

    <af:form usesUpload="true">

         <af:inputFile columns="10" valueChangeListener="#{backing.fileUploaded}"/>

    </af:form>

    using the above code, I can define a method that runs when some people choose some files in the form. So now, I need to know in fileUploaded method what should be the java code to download the file on the server.

    Please help me. How can I achieve this.

    Thanks in advance.

    You searched for but do not read messages completely

    Now, you gotta read this post completely to do your job

    Check - Blog of Ashish Awasthi (Jdev/ADF): downloading files path absolute server in Oracle ADF (12.1.3)

    You can also download and check the sample adf application attached with blog post

    Ashish

Maybe you are looking for

  • my homepage setting ignored

    I tried to put the BBC News page as my homepage, but every time I start I see the page of Google. I tried dragging the icon of the BBC (on the line of the BBC URL) on the Home icon on the far right of the screen and saw a message ' do you want this d

  • Firefox crashes when the flash is used.

    Firefox crashes when the flash is used at all.I've checked everything and it is only with flash 10.1.53.64 on the tree == a site using flash is open

  • Tecra A8 - reboot when I'm working on

    My computer restarts when I'm working in, time of which is not even

  • external DVD - BR drive not detected in windows 7

    Original title: confused beginner "Arrrgh". Installed new drive enternal DVD - BR, Trouble Shooter says: win. ' value' does not detect. Where how &? 'Enable '.

  • Windows Live Mail error, can't send or receive any

    I get this error when you try to check for email... Can't send or receive messages on behalf of the Charter. The host 'pop.charter.net' is not found. Please check that you have entered the server name correctly. Server: 'pop.charter.net.Windows Live