Downloading a file which is stored in FTP

Hi,
I am developing a webdynpro application where i need to display the flenames in the table which are stored in FTP. And by clickng the filename,it should be downloadable.
Can anyone Please tell how to download a file through webdynpro application (the file should come from FTP)
Thank You,
Madhavi.T

1) Create an FTP connection from NW java App. server to the FTP server.
or
2) Use ftp location, username & password in URL and read the file.
or
3) Use any .jar file which reads from ftp.
follow the thread listed below:
Image Upload and Download
How to access the remote file from webdynpro
Uploading and Transferring Files in Web Dynpro
regards,
Nikhil Bose

Similar Messages

  • If i download any file which is prepare on microsoft office 2007 . The file have been download without extension of the prog. Means if files name is "1,docx" when i download from firefox it download in that form "1". after download i have to rename and gi

    If i download any file which is prepare on microsoft office 2007 . The file have been download without extension of the prog. Means if files name is "1,docx" when i download from firefox it download in that form "1". after download i have to rename and give the extension name is plz tell me the way that office files are compatible with it.
    == This happened ==
    Every time Firefox opened
    == when i download the office files

    In Firefox Options / Privacy be sure "Remember download history" is checked. To see all of the options on that panel, "Firefox will" must be set to "Use custom settings for history".
    To find your OS information, on your Windows desktop, right-click the My Computer icon, choose Properties, under System on that small window is info about your OS.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • How can I run a sequence file which is stored as BLOB

    Hallo,
    I' using (or better will use) TestStand 3.1 and a ORACLE database. Is there a way to load and execute sequence files which are not stored on the filesystem but as BLOBs in the ORACLE DB. The choice which sequence has to be executed is done dynamically within a custom built process model. A certain sequencefile should be loaded and started by referencing it not by filename but with the PrimaryKey of the table.
    I don't know if this would be a certain capability implemented in TestStand or in ORACLE. It could be something like mapping a BLOB into the Filesystem and pretend that the file is present on the filesystem, something like that!
    Any ideas are highly appreciated
    Thanks
    Oliver Friedrich

    Oliver -
    TestStand does not have any hooks to allow a test system developer to override the internal searching for a file on disk. The only simple option that I see is to to query the database and download the latest sequences ahead of time. This is similar to a Source Code Control mechanism. Keep in mind that once an execution loads a sequence file, the file is typically not released until the last execution completes so you cannot load an updated copy of the sequence file while executing, especially the client sequence file.
    Scott Richardson
    National Instruments

  • Help Downloading a file from a server using FTP with only URL methods

    Hi All
    I have written this code and it is not working I dod not know why the download is not working please help is there anything that's missing?
    * Download the file
    public void download(String fileName, String destination)
           BufferedInputStream bis = null;
           BufferedOutputStream bos = null;
          // File destDir = null;
           try
               String urlString = "ftp://"+userName+":"+password+"@"+hostName+"/"+fileName;
               URL url = new URL(urlString);
               URLConnection conn = url.openConnection();
               conn.setDoOutput(true);
         conn.setDoInput(true);
               conn.connect();
           //set the destination directory
           File destDir = new File("U:\\2004\\"+fileName.trim());
            System.out.print("\n\n");
            System.out.print("Destination set to :" +destDir);
            System.out.print("\n\n");
              bis = new BufferedInputStream( conn.getInputStream() );
              bos = new BufferedOutputStream( new FileOutputStream(destDir.getName()));
              System.out.print("get file name :" +destDir.getName());
              System.out.print("\n\n");
              int i;
              while ((i = bis.read()) != -1)
                 bos.write( i );
              System.out.println("Trying to download...");
              bis.close();
              bos.close();
           catch (IOException ie)
         System.out.println( "Input not available" );
    This is what I get after runing this code.
    get umlcourse.txt U:\2004
    Destination set to :U:\2004\umlcourse.txt
    get file name :umlcourse.txtTrying to download...

    AceV wrote:
         String urlString = "ftp://"+userName+":"+password+"@"+hostName+"/"+fileName;
    You probably need to specify the transfer mode. For example:
    String url = "ftp://sam:spade@ftphost/myfile.txt;type=a";
    // Specify type=i for binary.

  • Download a file which is encoded as a String

    Hi All,
         I have a file which is encoded(Base64) as a String. Is there any way in flex to  decode and download the file.
      A sample code would help me !!!!!.
    Thanks.

    Check out the mx.utils.Base64Encoder/mx.utils.Base64Decoder classes.

  • How to directly print PDF file(which is stored in SAP) in ABAP report?

    Hi experts,
    I searched SDN for printing PDF file but everything is about OTF to PDF and to use fm: CONVERT_OTF which is not the solution for my problem.
    I have to build ABAP report which will take the PDF file attached to SAP document (CV02N) and print it.So, which function module or program can I use to print the PDF file?
    Thank you very much.
    Kind regards,
    Danijela

    Dear
       this is the code for down load smartform for PDF format. its working properly
    2nd way is
    set your Acrobat Printer as your default printer
    when you print select printer as LOCAL
    then you will file dialog box for Naming PDF
    DATA  :  T_OTF          TYPE ITCOO OCCURS 0 WITH HEADER LINE.
      DATA  :  WA_CTRLOP      TYPE SSFCTRLOP.
      DATA  :  WA_OUTOPT      TYPE SSFCOMPOP.
      DATA  :  T_OTFDATA      TYPE SSFCRESCL.
      DATA  :  T_PDF_TAB      LIKE TLINE OCCURS 0 WITH HEADER LINE.
      DATA  :  V_FILESIZE     TYPE I.
      DATA  :  W_BIN_SIZE     TYPE I.
      WA_CTRLOP-GETOTF = 'X'.
      WA_CTRLOP-NO_DIALOG = 'X'.
      WA_OUTOPT-TDNOPREV = 'X'.
      CALL FUNCTION P_LV_FNAME
        EXPORTING
          OUTPUT_OPTIONS     = WA_OUTOPT
          USER_SETTINGS      = 'X'
          CONTROL_PARAMETERS = WA_CTRLOP
        IMPORTING
          JOB_OUTPUT_INFO    = T_OTFDATA
        EXCEPTIONS
          FORMATTING_ERROR   = 1
          INTERNAL_ERROR     = 2
          SEND_ERROR         = 3
          USER_CANCELED      = 4
          OTHERS             = 5.
      T_OTF[] = T_OTFDATA-OTFDATA[].
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          FORMAT                = 'PDF'
          MAX_LINEWIDTH         = 132
        IMPORTING
          BIN_FILESIZE          = W_BIN_SIZE
        TABLES
          OTF                   = T_OTF
          LINES                 = T_PDF_TAB
        EXCEPTIONS
          ERR_MAX_LINEWIDTH     = 1
          ERR_FORMAT            = 2
          ERR_CONV_NOT_POSSIBLE = 3
          OTHERS                = 4.
      DATA  :  LV_DOWN_FILE TYPE RLGRAP-FILENAME.
      DATA  :  LV_TEXT      TYPE STRING.
      CASE SSCRFIELDS-UCOMM.
        WHEN 'REPRUNMOLD'.
          CONCATENATE '(' SO_SCHDT-LOW '-' SO_PLANT-LOW ')' INTO LV_TEXT.
          CONCATENATE '\\lkdb01\FTP-Loadstar\0.PP_Planning\ZPP014\Run_Moulds\' SY-DATUM '-' SY-TIMLO '-' 'Running Mould' '-' LV_TEXT '.pdf' INTO LV_DOWN_FILE SEPARATED BY SPACE.
        WHEN  'REPLINESIT'.
          CONCATENATE '(' SO_SCHDT-LOW '-' SO_PLANT-LOW '-' SO_LINE2-LOW ')' INTO LV_TEXT.
          CONCATENATE '\\lkdb01\FTP-Loadstar\0.PP_Planning\ZPP014\Line_Situation\' SY-DATUM '-' SY-TIMLO '-' 'Line Situation' '-' LV_TEXT '.pdf' INTO LV_DOWN_FILE SEPARATED BY SPACE.
      ENDCASE.
      CALL FUNCTION 'WS_DOWNLOAD'
        EXPORTING
          BIN_FILESIZE            = W_BIN_SIZE
          FILENAME                = LV_DOWN_FILE
          FILETYPE                = 'BIN'
        IMPORTING
          FILELENGTH              = V_FILESIZE
        TABLES
          DATA_TAB                = T_PDF_TAB
        EXCEPTIONS
          FILE_OPEN_ERROR         = 1
          FILE_WRITE_ERROR        = 2
          INVALID_FILESIZE        = 3
          INVALID_TYPE            = 4
          NO_BATCH                = 5
          UNKNOWN_ERROR           = 6
          INVALID_TABLE_WIDTH     = 7
          GUI_REFUSE_FILETRANSFER = 8
          CUSTOMER_ERROR          = 9
          OTHERS                  = 10.
      IF SY-SUBRC <> 0.
        MESSAGE  'File not downloaded succesfully' TYPE 'I'.
        EXIT.
      ELSE.
        MESSAGE 'PDF File downloaded succesfully' TYPE 'I'.
      ENDIF.
    ENDFORM.                    " Print_PDF
    Rewards if useful.

  • Need to download a file which si space delimted and has fixed length char

    Hi,
    I have a custom report which downloads an output file in text format.I need the contents to be space delimited.My file data contains numbers as well as characters.I ahve pased the parameter WRITE_FIELD_SEPARATOR = ' ' in the FM.Hwoever the space is introduced only oif the column value is a character.If its a number/digit,the columns are not seperated by space.
    Now my data appears like that:
    0000101310179.28 +0827200808 DHLBSRF VISA AUG 2008US021SW111 RYAN,BICOVNY
    I want my data to be like this :
    0000101310 179.28 + 0827200808 DHLBSRF VISA AUG 2008 US02 1SW111 RYAN,BICOVNY
    DO I need to pass any additinal parametre?Also for fixed length characrets,do i need to pack/unpack data before passing to the FM ?
    Thanks.

    Hi,
    try this way.
    REPORT ztest_notepad.
    DATA: BEGIN OF it_download OCCURS 0,
           data TYPE string,
          END OF it_download.
    DATA: BEGIN OF it_vbrk OCCURS 0,
            vbeln TYPE vbrk-vbeln,
            fkart TYPE vbrk-fkart,
            fktyp TYPE vbrk-fktyp,
            netwr TYPE vbrk-netwr,
          END OF it_vbrk.
    DATA : l_netwr TYPE char21.
    "START-OF-SELECTION.
    START-OF-SELECTION.
      SELECT  vbeln
              fkart
              fktyp
              netwr
       FROM vbrk
       INTO CORRESPONDING FIELDS OF TABLE it_vbrk
       UP TO 100 ROWS.
      LOOP AT it_vbrk.
        l_netwr = it_vbrk-netwr.
        CONCATENATE it_vbrk-vbeln
                    it_vbrk-fkart
                    it_vbrk-fktyp
                    l_netwr
            INTO it_download-data
            SEPARATED BY space.
        APPEND it_download.
        CLEAR  it_download.
      ENDLOOP.
      CALL FUNCTION 'GUI_DOWNLOAD'
           EXPORTING
                filename = 'C:\test.txt'
                filetype = 'ASC'
           TABLES
                data_tab = it_download.
    Thanks
    Venkat.O

  • I'm downloading a file which I know has been updated on the server but I'm still getting the old one... I think there is a cache somewhere I need to clear but I'm not sure ?

    I have a file on my own server which is available to the public to download I uploaded a new version so I know it replaced the existing one. But when I try downloading it through Firefox I just get the older version and not the new one... I seem to remember having this problem before and was given details of how to clear the cache concerned, but I don't know for sure. Any help would be appreciated thanks

    Ctrl F5 doesn't do anything. (I'm on a Mac if that makes a difference.) The link is to the online page and it does prompt me for the id and password for that page.
    The page is designed in htm.
    This is driving me a little nuts. I suspect there is a library file somewhere that itsn't being cleared out, but I can't figure out where.

  • Where are the  downloaded movie files for iTunes stored?

    Im trying to find the files on my time machine to restore some movies I had in Itunes.  I can't download them again from itunes for some reason so I am trying to restore the files from the time machine. I need to know where on my mac the movies and tv shows I've downloaded from iTunes are stored on my computer Any help would be greatly apreciated.
    Thank You

    They're located inside the Music:iTunes:iTunes Media folder of your home folder unless you told iTunes to look elsewhere for its library.
    (81417)

  • Can you recover deleted files which were stored on an external HD after emptying the trash on the Imac using Time Machine.

    Hello - I had deleted files off of my external HD which I thought would not affect my Itunes library... Unfortunately I was incorrect in my assumption.  Additionally, I empty the trash as I was hoping to regain storage space for the external HD.  My question is, can i restore these files now that the trash has been emptied?  I do have a regular back-up running on a Time Capsule, however when I chose the ext HD and enter into the time machine to restore it will not allow me to locate any files on the external HD?? 
    Help!!!  

    Is Time Machine configured to backup the external disk drive?
    It doesn't sound like it is. Which means that they is no way to get anything from that EDD from TM.
    Your only alternative now is file recovery software. For a review on such software, try http://data-recovery-software-review.toptenreviews.com/mac-recovery-software/

  • Download file which is in Stream format

    Hi All,
       Is there a way to download a file which is in stream format in flex ?
      A sample code would help me !!!!!
    Thanks.

    You can reorder pages by dragging them to new positions in the Pages pane on the left.

  • Communication with the  Idoc file with is server through FTP (TCP/IP)

    Hi All,
    My file which is stored in the directory of the SAP server.
    In this file Sales order data is stored in the IDOC format.
    I have to devlelop a interface which which communicate with Server (where IDOC file is stored) with FTP using TCP/IP.
    Is there any sample code is there.
    Thanks in advance .
    Point guranted .

    Hi,
    Check this links out
    Using of FTP_CONNECT
    FTP_CONNECT
    FTP_CONNECT
    Regards,
    Samson Rodrigues.

  • How to download a file from other server using servlet

    Hi All....
    Good Morning....
    right now,i am facing a problem..i am trying to download a file which is in other server..i tried somany ways and i couldnt succeed in this...
    will u pls give me solution for this..
    because it is very urgent for me...
    i am very much thankful if u provide me the code samples also....
    i am seeking ur help...
    Regards,
    sathya

    right now,i am facing a problem..i am trying to download a file which is in other server..i tried somany ways and i couldnt succeed in this...If you can tell some of our approaches and the failures you faced, someone might be able to help you.
    I dont think anyone will just give the code samples.

  • Download Language file on Presentation Server.

    Hii
       I want to download a file which is language specific.Means the data in the internal table is in Login Language .I want to download the data as present  in the internal table to a local file .
    Please suggest .
    Ajitabh Pradhan

    Hi,
    You can do that using the GUI_DOWNLOAD. but at the same time , whatever thaelogon language is that should be installed in your system, then only the proper file will be downloaded ..
    Regards
    Sudheer

  • I want to read a file which is in a zip and this zip file is at ftp site

    i am facing this problem and try to find the solution from last month please help me
    i want to read a file which in ziped and this zip file is at ftp site. and i want to read this file without downloading this zip file to local machine. i have to read it from ftp location only

    You can open an URLConnection to a file on an FTP server (search this forum to find out how). You can get the InputStream from the URLConnection and feed it to ZipInputStream. That should do the job.

Maybe you are looking for

  • How to append a new entry in a list of 100,000 names without iterating the list each time?

    I have a list of 100,000 + names and I need to append to that list another 100,000 names. Each name must be unique. Currently I iterate through the entire list to be sure the name does not exist. As you can imagine this is very slow. I am new to Java

  • VGA adaptor help!

    Help, I accidentaly connected my PC Video out to my ipad vga adaptor while setting up a video splitter and now the VGA adaptor doesn't work, did I burn up the adaptor?

  • Dolby 5.1 Pass Thru

    Ok.. So I've been able to get Dolby/DTS 5.1 to play from the DVD player, to the optical outs of my G5, to be decoded by my reciever. However, I'm trying to do the same thing with other audio/video programs. I have a MPEG StreamClip app, which will pl

  • How I can change my .bash profile to use more shell features

    Hi , I am currently on sol  10 ,and the tab and similar other features doesn't work rather it gives special characters ..this was not the case with rhel .. what can I do to have those features in my shell. I am using korn/pfksh. Thanks

  • I want to redesgin my company network

    Hi Currently we 180 users in my company headoffice.And we have three branch offices on VPN. My current network design for headofffice is a follows                                         ISP------------------------>Router--------------->Pix firewall-