FTP download from AS400-Help me!

Hi all,
I'm very frustrated!!!!.
I'm trying to download a file from AS400 via FTP using org.apache.commons.net.FTPClient class, but as i download it by
ftpClient.retrieveFile(remotePath,anOutputStream)
i get a no ASCII file (opening file in local machine with word pad i see very bizarre characters!).
If i download the same file by using ftp client at command line:
ftp>login
etc..........
adding ftp>bin command and ftp>get fileName i get the good result.
How could I replace ftp "bin" command by using org.apache.commons.net.FTPClient class ?
Thanks in advance!!!
Fil

EBCDICShouldn't it be the same problem then when using
command line ftp and "bin" transfer mode like hedid
(successfully)?Probably but I still think it worth trying EBCDIC
mode. If it does not help then one thing has been
eliminated.Hi,
ftpClient.setFileType(FTP.EBCDIC_FILE_TYPE)
does't work (I tried).
I tested that ftp>bin command works fine.
Mistery!!!!!
Fil

Similar Messages

  • Automate FTP download from a website

    Hello
    Does anyone know how to automate a ftp download from a site using a login and password? I am using the SAP business objects XI 3.2 environment.
    Any help would be greatly appreciated !
    Regards
    Juan

    i have an idea, i didnt try it but it looks cool
    why you dont map this ftp folder to a logical drive, and use this drive into data service?
    find out how you can map ftp folder to logical drive here
    http://www.astahost.com/info.php/Map-Ftp-Server-Drive_t7292.html
    good luck
    Amr

  • My pc was wiped clean and now i can not find my photoshop and elements programs that I have downloaded from adobe help

    my pc was wiped clean and now I can't find the photo shop and elements that I own on adobe do re-download them please help.
    Thanks
    Teresa Napper

    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.6| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Downloading from ps3 help

    1. ok so my brother synced his new ipod on my computer with my library playlist can he down load songs from a cd in his ps3 or does he need to always us my computer?
    2. I am going to buy my own ipod touch soon and I want to know if I can sync it with my own name showing on my ipod and not my brothers since he set his up on her you know like for example jo's music that name wont show on mine will it? will it reconize a different serial # when I plug mine in apoosed to his which was setup on my computer?

    He cannot load music from the PS3 and the computer, it is one or the other.
    You can use your iPod on the computer an it will be treated as a totally different iPod from your bothers. When you connect it, you will be asked to give it a name (which you can change at any time anyway). and you can manage the music on your iPod independently of your brothers.

  • Patch download from Utilities tab fails

    One of the best feature of this tool is the ability to download and process patches. I have tried about everything to get this to work. Any help would be appreciated.
    .netrc contains 2 entries in the following format:
    machine updates.oracle.com login <Metalink account> password <AcctPassWord>
    machine oracle-ftp login anonymous password [email protected]
    Below is the Debug output from eof_patch11i.log.dbg:
    eof_patch11i.sh has been called with DEBUG parameter
    DEBUG is set to : Y
    DEBUG log file : /u01/app/oracle/product/10.2.0/db_1/eof/log/INSTANCE_1702/eof_patch11i.log.dbg
    Setting up: MY_REMOTE REMOTE_NODE REMOTE_PATCH_TOP REMOTE_USER
    as:
    count_tiers : 1 , count_readmes : 0
    Setting up: MY_REMOTE REMOTE_NODE REMOTE_PATCH_TOP REMOTE_USER
    as: ssh adoraupgrd102.tmpw.com -l appladupgd au_phase1/REMOTE115_APP.env adoraupgrd102.tmpw.com /oapp/app/11i/adupgdappl/patch appladupgd
    Got to Process_Main
    SQL OUT PATH: /tmp/EOF_LOGS29733.txt
    OK - Count from ad_bugs/ad_applied_patches shows patch 4963569 applied 0 times.
    DEBUG=> Next checking for applptch.txt and 4963569 count COUNT=0
    Note: No applptch.txt found (/oapp/app/11i/adupgdappl/admin/ADUPGRD/applptch.txt)
    Running: get_from_url_1702_4963569.sh to try and get p4963569_11i_LINUX.zip from updates.oracle.com (try: 0)
    SUCCESS = ls: p4963569_*11i_*.zip: No such file or directory
    Running: get_from_url_1702_4963569.sh to try and get p4963569_11i_LINUX.zip from updates.oracle.com (try: 1)
    SUCCESS = ls: p4963569_*11i_*.zip: No such file or directory
    Running: get_from_url_1702_4963569.sh to try and get p4963569_11i_LINUX.zip from updates.oracle.com (try: 2)
    SUCCESS = ls: p4963569_*11i_*.zip: No such file or directory
    Running: get_from_url_1702_4963569.sh to try and get p4963569_11i_LINUX.zip from updates.oracle.com (try: 3)
    SUCCESS = ls: p4963569_*11i_*.zip: No such file or directory
    Running: get_from_url_1702_4963569.sh to try and get p4963569_11i_LINUX.zip from updates.oracle.com (try: 4)
    SUCCESS = ls: p4963569_*11i_*.zip: No such file or directory
    #################### Get_Patch_Updates ####################
    Patch_Type : 11i
    Platname : LINUX
    Patch_Ext : zip
    P1 : p4963569
    File should be then : p4963569_*11i_LINUX*.zip
    DOWNLOADED_FILE :
    NORMAL PATCH detected : 0
    OK - Can read the patch_top: /oapp/app/11i/adupgdappl/patch
    Running ls -l of *zip file:
    Checking for No such file ls error: ON_REMOTE=
    REMOTE_PATCH_TOP=/oapp/app/11i/adupgdappl/patch
    TRYING TO scp: /u01/app/oracle/product/10.2.0/db_1/eof/patches/p4963569_11i_GENERIC TO: [email protected]:/oapp/app/11i/adupgdappl/patch
    Thanks
    Dave

    Here is the full error
    ERROR: std.err had output:
    ping: unknown host updates.oracle.comftp: updates.oracle.com:
    Diagnostic - My Oracle Support ftp Downloads from updates.oracle.com
    ftp test with .netrc file: /opt/orapp/oracle/mw_db1/eof/.netrc
    Checking permissions to file: $EOF_HOME/.netrc
    OK - can read .netrc
    Ping test to updates.oracle.com
    Using ping command: ping -c 1 updates.oracle.com
    OK - ping test to updates.oracle.com
    Ftp test to updates.oracle.com
    Maintenance Wizard not downloading any patches. Looks like it needs FTP server up and running. but installation document does not say so.
    Executing test ftp and ls of patch: 5497337
    ERROR - failed to access patch: p5497337_11i_GENERIC.zip from updates.oracle.com
    ftp Output returned:
    unknown host
    Not connected.
    Not connected.
    Test with file: /tmp/MWftpTest.sh resolve this problem
    ftp -i updates.oracle.com << START
    cd 5497337
    ls
    quit
    START
    NOTE: It may be that an ftp proxy needs to be setup
    *****************************

  • Attachments dont download from Gmail in Safari, They disappear,I even tried re-downloading Safari and that download disappeared, it is not in my downloads folder, I actually searched in finder for the file and it is nowhere on my computer.  Please help!

    Attachments dont download from Gmail in Safari, They disappear,I even tried re-downloading Safari and that download disappeared, it is not in my downloads folder, I actually searched in finder for the file and it is nowhere on my computer.  Please help!

    Oh my gosh I had the EXACT same problem, and for ages I couldn't figure out how to fix it until today. Here's what I did:
    First I went onto my computer, opened itunes, and un-installed tumblr, vine and kik. These were the apps I was having problems with (it said I had them on my phone but, like you, they didn't show).
    Then I went to the itunes store, searched for each one, and it said I could update them so I did (just FYI: for tumblr a window popped up saying "please click ok to confirm you are 17 years or older", so I did that also)
    When I went back to my phone and tried installing them again (still on my computer), it worked!
    I hope this helps, because it was incredibly frustrating. Good luck!

  • When I try and play music on my iPhone downloaded from iTunes it says 'this URL is not found on this server'. This does not happen when I play the same music through my iPad. Can anyone help?

    When I try to play music downloaded from itunes on my iPhone 4S it says 'this URL is not found on the server'. This does not happen when I play the same music on my iPad. The music plays fine. The message also comes up when I try and login to iTunes on my iMac. Can anyone help?

    I too am having the same issue as the OP.
    Your USER AGENT information is Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18
    Every webserver that receives a request from your browser is able to determine the HTTP USER AGENT information unless it has been removed by some software (e.g. firewall) before the request was trasmitted.

  • I can't download from app store apps. if i try then open account and ask me shange payment type because there is a billing problem with a previous purchase. I download one game 0.99 and nothing more! help me. How can i contact with apple?

    I can't download from app store apps. if i try then open account and ask me shange payment type because there is a billing problem with a previous purchase. I download one game 0.99 and nothing more! help me. How can i contact with apple?

    Click here and ask the iTunes Store staff for assistance.
    (102938)

  • My question is How to do old 4S to new 5 S to save same into phone but can not do ask someone last night and did not help me as I am deaf and not clear and Please man told me download from computer and I am not understand at all

    Yesterday We went to At and T store and they told me to download from old phone to new phone and I am really upset and I got Icloud and prove but part of still in 4S and has not go in 5S and that is biggest problem and no commuication that woman stay follow what she said but still not working so I do not know what else to do my do not understand and I would like to have someone do for us and AT and T store can not do that part so Told me Apple store and I called last night talk to some one on Apple store but told me that no go back to AT and T store so now total confuse and I am not get anywhere so and why they will not do it so therefore I do not think computer that not clear for us because we have no experince in computer program for this so both are deaf and not clear so over 50 years age and so we need face someone to do for us and told us do our self which is total upset us more so because my twins are in Orlando and can not call them because of problem contiunes in heart so I need someone who we can trust and help us. I do have IPAD mini and almost lost my calls to my twins and today I think get back but not 100 % so I am kind upset and who email us or I will have to go Apple Store and see if they know personal.

    Open this support document http://support.apple.com/kb/HT2109 print it from the computer and follow the steps there. You need to backup your data from the first device and then restore that to the new device.

  • Help with start up. new iMac 27" with Marericks installed has been giving me trouble with IDs and passwords.  More than one account downloaded from older Laptop.  Now the computer has the turning wheel in from of gray screen and won't go any further when

    I recently started using my desktop iMac 27" and have been having problems since installing Mavericks, not saying that Mavericks is the problem per se.  I think I have too many accounts with too many names, with too many Apple IDs and too many passwords, email passwords and Apple ID passwords, and keychain passwords, etc.  Can't keep them straight even though I write everything down.  The screen has been making me log in and log out with Account name and passwords after everything I've been doing, also confused about Users and Groups and how to sync everything. I finally just "shut down" everything and the screen was black.  When I turned the computer on again, the circular gear in the middle just kept turning but nothing happened after that.  Then I held the on button in the back until the screen went black again. 
    What should I do?  Is there a way to combine all my accounts into one account with one Apple ID?  I should say that I also have trying to use iCloud and it has different IDs and passwords. Also when I try to log in with one account name, I can't enter anything I write,and when I type on the keyboard, nothing appears on the screen, although I can receive emails, I can't send them. 
    In another account, what I type does appear on the screen, but I think it's an earlier account and doesn't translate aver to the other account. ALTHOUGH i set up iCloud accounts, they don't appear any more.
    Very confused.  Any Ideas about how I can get the computer to start up again and show a new screen?
    Thanks to anyone who has workable suggestions.

    If you really believe that your system has been compromised, here's what you do:
    Disconnect your Mac from your cable modem;
    Back up any documents on your system that are important to you;
    Boot your Mac from the system installation disks that came with it (insert the disk, restart your Mac, and hold down the "c" key until you get the "spinning gear" icon);
    Choose a language and click the arrow button to continue;
    From the Utilities menu, choose Disk Utility;
    In Disk Utility, select your computer's hard drive;
    Click the "Erase" tab;
    Click the "Security Options" button and select to have it overwrite all the data on the hard drive;
    Click the "Erase" button and allow it to process;
    Once the "erase process has completed (it will take a while), reinstall Mac OS X.
    Or, if this is too much for you to accomplish on your own, take your system to an Apple Store and have them help you perform these steps. If your system was indeed compromised, this will remove any such hack. You can then set up a new user account for the computer, reinstall your applications (reinstall only from original disks or downloads from the company making the software) and documents, and reconnect to the Internet.
    Note that when you reconnect to the cable modem, you may still get an IP address starting with 198. This is normal with some cable modems and probably not a cause for concern. It will not be an indication that your system is still compromised; that will not be possible if you perform all the above steps.
    Regards.

  • I have iTunes 10.6.3.25 and I can't find my audiobooks that I downloaded from a library website.  The audiobook tab is visible in iTunes but none of the audiobooks are there.  They are on my iPod nano.  Please help!

    I have iTunes 10.6.3.25 and I can't find my audiobooks that I downloaded from a library website.  The audiobook tab is visible in iTunes but none of the audiobooks are there.  They are on my iPod nano.  Please help!

    When you say they are displaying in your iTunes library, are you talking about the Audiobooks section of your iTunes library and not the audiobooks section indented under the iPod in the left pane of iTunes under Devices?
    Is the iPod Shuffle configured to sync audiobooks or do you manually manage the iPod's contents?
    B-rock

  • ITUNES downloads from store causing BSOD windows stop error- Please Help!

    Hi everyone,
    maybe someone can help me out or knows how to fix this problem.
    Problem in detail:
    This problem started since I updated to the latest version of itunes 7 to download video for my ipod video 30gb. Itunes worked perfect on my computer before updating as I used it with an ipod mini.
    I was able to use my new IPOD 30gb fine and transfer all my music to it correctly.
    The main problem occurrs when downloading anything from itunes store...1st noticed this when my podcasts were updating and downloading and then the system suddenly crashed with the windows blue screen error message and had to reboot. This happened multiple times so I disabled the automatic downloads of podcasts. Itunes then works fine when not downloading anything.
    I then tried purchasing a TV show, whole series, and when it began downloading, the Exact same Error and Blue screen will occur--Very Frustrating.
    I uninstalled ITUNES and Quicktime, and then reinstalled them via the latest download from itunes. The same errors still occur.
    When windows reboots and sends error report to Microsoft, it states the error is due to a Driver error of which the specific driver is not known.
    I have called apple/itunes support and spoke with them and they could not figure out the problem and said I should check with my computers cust service and/or microsoft as it was probably something on this end...I did this and they stated the problem must be something with itunes and especially since all other programs run fine on my system.
    SO basically I am going in circles trying to figure this out so I am hoping someone here may know how to fix this problem.
    Not only that, but I tried the same on my desktop as I figured I could at least download my podcasts and purchases to my desktop and then transfer to my ipod from there(as I am mainly using my labtop for my ipod) and updated my desktop to itunes 7 latest version,, and figured it would work on my desktop with same operating system----but it Caused the SAME error BSOD as my labtop and in same fashion....only when downloading from itunes.
    ANy help is much appreciated as I got the ipod video mainly because of ITUNES video content and podcasts and if I cannot use these major functions on ITUNES than This Was a Complete Waste for me to get the Video IPOD.
    Hope there is a way to fix
    Thanks

    I afraid can’t help much with this, but no one else
    has answered. It does seem very odd that two
    different computers have the same problem. It makes
    you wonder about the content you were trying to
    download. As a matter of interest was the
    installation for both computers done from the same
    download file?
    When your computer dies, can you read the stop
    message or does it disappear, if it does, go to
    Control Panel>System>Advanced
    Click Settings in Start Up and Recovery and make sure
    that Automatically Restart is no checked.
    You should be able to get a stop number from the blue
    screen and you may also be able to identify the
    filename of a driver, which could give a clue to the
    problem.
    The Microsoft Website has a certain amount of help on
    specific stop messages, you can search for the number
    of the stop message which will be something like
    0x0000000A.
    There is also some help on troubleshooting stop
    messages here:
    http://aumha.org/win5/kbestop.htm
    Thanks for your reply.
    As far as the content being downloaded from itunes---consisted of different podcasts and also on a separate occasion-the tv show Heroes complete season on ITUNES..So I would guess the error has nothing to do with the content being downloaded.
    The ITUNES installation for both computers was from the same itunes download file on this website on apples itunes free download.
    I did not write down the most recent stop numbers and no drivers seemed to be named on the blue screen from what I could tell, but I guess I could be missing something...
    From a previous crash with the BSOD- the error message listed was this: STOP: 0x00000050 (0xbad0b158, 0x00000000, 0x8056ea22, 00000002)
    not sure if this helps maybe figure out the cause of this or not.
    Maybe this will help get to the bottom of this.
    Thanks

  • I recently upgraded my 4s to a 5s. the verizon store took my old phone for a trade in. i cannot get any of my pictures to download from icloud. my photo stream folder only has a small percentage of the photos in it. any help would be greatly appreciated.

    i recently upgraded my 4s to a 5s. the verizon store took my old phone for a trade in. i cannot get any of my pictures to download from icloud. my photo stream folder only has a small percentage of the photos in it. any help would be greatly appreciated.

    That's possible if he didn't connect to a WiFi hotspot after taking them.  I don't think the "Personal" Photo Stream uploads over Cellular, unless they changed it since the last time I used it.
    If that's the case, then the photos likely didn't upload to Photo Stream and are stuck on the phone.
    And you're not going to be able to get them back, either.

  • HT3775 I get the following message when trying to open an .avi downloaded from my video cam, need help, can not find the codec, thank you.The document "IMAG0026.AVI" could not be opened. A required codec isn't available.

    I get the following message when trying to open an .avi downloaded from my video cam, need help, can not find the codec, thank you. This is for Quicktime Player.
    "The document “IMAG0026.AVI” could not be opened. A required codec isn't available."

    Try Perian.
    http://perian.org/

  • Hi - I'm trying to sync iBooks on my Macbook Pro with iBooks running on my iPad. I have some pdf's download from the net I want to share between devices and I can't work out how to sync the two devices. Any help please?

    Hi - I'm trying to sync iBooks on my Macbook Pro with iBooks running on my iPad. I have some pdf's download from the net I want to share between devices and I can't work out how to sync the two devices. Any help please? I'm running Mavericks

    Thanks for your help Brij011 - much appreciated. Apologies as I'm a newbie but I've looked at the info for synching and I appear to have all the switches flicked on my iPad. Does the iPad and iBooks only sync in iCloud for purchases as I appear to be doing something wrong. I could sync ok when books was in iTunes but since migrating to Mavericks I think I'm doing something wrong!!

Maybe you are looking for

  • "Failed to load database information" error

    I know there are many threads on this error, but none appear to apply to my situation.  We distribute CR2008 reports with our C#.NET application, connecting to a SQL Server 2005 db .  We have had very few problems with our reports, with the exception

  • Where can I find Adapter Specific Message Attributes ASMA Schema Definition

    Hi all, I'm on PI 7.1 and want to use the Mail adapter in XIPAYLOAD mode. I want to map to the ASMA schema definition in the Enterprise Service Builder. I'm wondering where I can get this "new" schema? For example the "old" mail adapter xml schema co

  • Scale Strokes & Effects in Photoshop CS5

    The Scale Strokes & Effects-option used to reside in the Preferences dialog box. Seems like it has been removed in CS5, anyonene know why, or where a simmilar function may be found? Thing is, when i add a Stroke (Layer Effect) to a layer, the thickne

  • Question on constructors

    Is there a rule on what constructors can accept? I am creating a class here import java.io.Serializable; import java.util.Date; import java.util.ArrayList; import java.util.List; public class Meet implements Serializable    private Long id;    privat

  • How can I get data that was on my phone before the last sync?

    I backed up my iPhone in September.  I stupidly restored it last week without first backing up everything I had up to this point, and lost all the data in between that was on it. Is there any way to get that data back?