I have a problem in using input stream in ftp

Hi dear members,
i have a problem. i am using below code to have inputstream of the file. f is directory and osconfigscript[q] is a file, which is already existing.
InputStream is = new BufferedInputStream(new FileInputStream(new File(f,osconfigscript[q])));
Later on i am using this input stream to ftp it .
ftp.setFileType(FTP.BINARY_FILE_TYPE
ftp.storeFile(osconfigscript[q],is) ;
But the content i am getting in the ftp server is not same as i have sent.
though the file name and it's remain same. the content become unreadable. the ftp class that i have used is
"org.apache.commons.net.ftp.FTPClient".
what should i do to make my content readable in the ftp server.

I found the answer myself. Actually i was doing hot deployment in my jboss server (through eclipse jboss plug-in) . This was cause of the error .i have done the cold deployment now it is working.
Hot deployment is works better in the JDeveloper then in eclipse - jBoss combo.
no i have not used inputstream stream between its creation and passing it into the ftp method.

Similar Messages

  • TS2755 Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help of how to set up messages on each

    Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help on how to set up messages on each device separately and to start using messages app on each device independently. Thanks

    search google for "iphone remove picture from contact"

  • Guys i have a problem, I used to download apps from one of my friends apple id, now i created my new account, but when i was about to update my apps its asks for my friends id and password. now how could i update my old apps from my new apple id?

    Guys i have a problem, I used to download apps from one of my friends apple id, now i created my new account, but when i was about to update my apps its asks for my friends id and password. now how could i update my old apps from my new apple id?

    The_Tonmoy wrote:
    I have no communication with my that friend :/ So it means i need to delete those apps? There's no other solution to update those apps?
    No.  purchases are forever tied to the apple ID used to buy them.  Delete them and buy your own copies.

  • I have a problem in using  for all entries

    Hi i have a problem in using <b>for all entries</b>
    i have declared the two internal tables as below
      DATA: BEGIN OF ITAB OCCURS 10,
              EBELN LIKE EKKO-EBELN,
              LIFNR LIKE EKKO-LIFNR,
              EBELP LIKE EKBE-EBELP,
              BELNR LIKE EKBE-BELNR,
    *          MATNR LIKE EKPO-MATNR,
    *          TXZ01 LIKE EKPO-TXZ01,
              VGABE LIKE EKBE-VGABE,
              GJAHR LIKE EKBE-GJAHR,
              KNUMV LIKE EKKO-KNUMV,
         END OF ITAB.
    DATA: BEGIN OF ITAB1 OCCURS 10,
              EBELN LIKE EKPO-EBELN,
              MATNR LIKE EKPO-MATNR,
              TXZ01 LIKE EKPO-TXZ01,
              WERKS LIKE EKPO-WERKS,
              NETWR LIKE EKPO-NETWR,
              MENGE LIKE EKPO-MENGE,
              MWSKZ LIKE EKPO-MWSKZ,
              LIFNR LIKE EKKO-LIFNR,
              EBELP LIKE EKBE-EBELP,
              BELNR LIKE EKBE-BELNR,
          END OF ITAB1.
    <b>and now i have tried to move the values in those internal tables using these statements</b>
       SELECT  A~EBELN A~LIFNR A~KNUMV B~VGABE B~EBELP B~GJAHR B~BELNR
            FROM  EKKO AS A
            INNER JOIN EKBE  AS B ON  B~EBELN = A~EBELN
            INTO  CORRESPONDING
            FIELDS OF TABLE ITAB WHERE B~VGABE = '2'.
       SELECT EKPO~EBELN EKPO~MATNR EKPO~TXZ01 EKPO~WERKS EKPO~NETWR
              EKPO~MENGE EKPO~MWSKZ
          FROM EKPO
          INTO CORRESPONDING FIELDS OF TABLE ITAB1
          FOR ALL ENTRIES IN ITAB
          WHERE EBELN = ITAB-EBELN.
          LOOP AT ITAB1.
           READ TABLE ITAB WITH KEY EBELN = ITAB-EBELN.
           ITAB-EBELN = ITAB1-EBELN.
           ITAB1-LIFNR = ITAB-LIFNR.
           ITAB1-EBELP = ITAB-EBELP.
           ITAB1-BELNR = ITAB-BELNR.
           ITAB1-EBELP = ITAB-EBELP.
           APPEND ITAB1.
          ENDLOOP.
    But when i was using loop then it was displaying values in debugging mode but while i was trying to execute it was taking a lot of time i thought that it was due to more information in the already declared internal table so i have tried to remove the previous entries but it was showing an error while i was removing the old entries
    and when i  remove the loop at itab1 then i'll get output directly but it was displaying the itab fields which is my 1st internal table but not the values of itab1 can u explain me what is the possible error for that
    Regards ,
    Pavan

    before using for all entries in, u need to check whether the driver internal table is empty, if it is empty, u should not enter into select statement.
    if u wont use this check means, when the driver internal table is empty, the second select will take all the entires from the tables.
    SELECT  AEBELN ALIFNR AKNUMV BVGABE BEBELP BGJAHR B~BELNR
            FROM  EKKO AS A
            INNER JOIN EKBE  AS B ON  BEBELN = AEBELN
            INTO  CORRESPONDING
            FIELDS OF TABLE ITAB WHERE B~VGABE = '2'.
    if itab[] is not initial.
       SELECT EKPOEBELN EKPOMATNR EKPOTXZ01 EKPOWERKS EKPO~NETWR
              EKPOMENGE EKPOMWSKZ
          FROM EKPO
          INTO CORRESPONDING FIELDS OF TABLE ITAB1
          FOR ALL ENTRIES IN ITAB
          WHERE EBELN = ITAB-EBELN.
    endif.
    I hope this will help u.
    else,
    Sujatha.

  • When using FireFox I often cannot view pictures in Hotmail, but have no problem when using other browsers

    When using FireFox I often cannot view pictures in Hotmail emails, but I have no problem when using other browsers

    Do you also have this issue if you temporarily switch to Private Browsing mode?
    *https://support.mozilla.org/kb/Private+Browsing
    *Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    *Select: [X] "Always use private browsing mode"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    See also:
    *https://support.mozilla.org/kb/fix-login-issues-on-websites-requrie-passwords

  • I have a problem with using MacBook Pro as wifi router when connected to ethernet

    I have a problem with using MacBook Pro as wifi router when connected to ethernet. The Airport icon changes to show a laptop inside, my iPad shows connected (I think) but Safari will not operate. I tried pinging my iPad, it seems to see the iPad, but no connection to Safari or to other apps such as Good on the iPad. I have read many posting and tried repeatedly via Sharing in Systems Preferences, but no luck. Suggestions to fix, or is this a Lion problem?

    Usually this is a problem related to the domain name server address. If you open Network preferences, select your Ethernet port then click on the Advanced button then on the DNS tab. You will likely see an entry like 10.0.1.1 already listed. Click on the Add [-] button and enter 208.67.222.222 then click on the OK button and then on the Apply button.  See if this helps.
    if it does not help then repeat the above but with the Airport port.

  • I have a problem with using (hotmail)

    i have a problem with using (hotmail) , that when i try to use messenger through it , that shown many of pages can not be open , and my contacts are not available , when i contact with Windows Live team to solve the problem they inform me that the problem is with my browser , so i have to ask them about it , and i use Mozilla Firefox 8.0 , so kindly help me to solve this issue

    That is a problem with Silverlight
    On a Mac, Firefox 4 is a 64 bit application.<br />
    Not all plugins support 64 bit and if not then you need to start Firefox in 32 bit mode to use that plugin.
    # Close Firefox
    # Start the Finder and open the Applications folder
    # Right click or control-click the Firefox.app icon
    # Select "Get Info"
    # Select or Deselect "Open in 32-bit mode"
    # Close the "Firefox Info" window
    # Restart Firefox

  • Create HelpSet using input stream and not URL

    Hi All,
    I looked over the docs and apis and I was not able to find any way to create a HelpSet from an input stream.
    Basically all I have is are input streams to the help files and not URLs, is there a way to initialize the help set with that?
    thanks

    Never compare Strings using Object equality or inequality ("==" resp. "!=").
    Use [url http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#equals(java.lang.Object)]String#equals (or [url http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#indexOf(java.lang.String)]String#indexOf or [url http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#matches(java.lang.String)]String#matches).
    Please use code tags when posting code. This means wrapping your text between [code[/b]][[/b]code] tags. See the [url http://forum.java.sun.com/help.jspa?sec=formatting]Formatting tips.

  • How do I stop Firefox from creating untitled web pages when I try to send email from a web page. The only way I have found is to turn the computor off and then reboot. I don't have this problem when using Internet Explorer

    Every time I click on a web site that has an email option the browser starts making untitled web pages and never stops unless I turn the computer off. It is very frustrating to not be able to use an email option when offered by a web site. The only way I can send email messages on the Firefox browser is to go into my hotmail acct. and copy and paste the addresses. I don't have this problem when I use the Internet Explorer browser.

    See [[Firefox keeps opening many tabs or windows]]

  • Have a problem with keyboard input in my android phone

    When i use firefox browser on my android phone , the keyboard stop for a while , and the insert of characters is very slowly.
    I have this problem just with firefox browser on my android phone, but other browsers work much better in this case.

    What keyboard? What phone?

  • I have a problem when using Yahoo based , the curser continues to flash

    I am currently using FF 3.6.17 and Java 1.6.0_26 and continue to have the curser flash while in any Yahoo mail or website. I do not have the problem when I switch to IE, only in FF. I do have a screenshot available that shows where this larger curser shows up.

    The 1st: is the screen shot where it shows a larger line in black on the left 1/4 of page (circled) next to the message post no. 41803 in Yahoo group and also does this while in mail.
    Then the 2nd picture is when I was on Mozilla website to ask this question. Notice the large black curser (circled) on the far right side along the edge.
    Both of these do NOT show up when I use IE.

  • Hangs up when i try to access email, do not have the problem when using internet explorer

    do not get indication of number of emails on home page. have att.net which uses yahoo.com. when i click on email icon i get the rotating circle icon, but just stays there for longer than i have been willing to wait. get out of there by right click and reload. do not have problem if using internet explorer

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • Cannot open emails in hotmail. Have no problem opening using I.E. browser

    Did a cleanup of my system using ashampoo WinOptimiser 5, which made my computer work more efficiently. However, after opening the Firefox browser (with no problems), I then logged on to my hotmail account (again without any problems). But after opening my inbox, I found that I was unable to open individual mailings. I went through the above procedure, but this time usng the Internet Explorer browser and this time had no difficulties in accessing my emails. From this, my conclusion is that there is something that perhaps I need to do in the Firefox settings to to resolve this situation. I have uninstalled and re-installed Firefox, but this has made no difference.

    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    (You also can clear Firefox's cache completely using:
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now")
    (2) Remove your live.com cookies (save any pending work first) using either of these:
    * While viewing a page on the site, right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    Then try reloading the page. Does that help?

  • I have a problem with using Outlook as my email editor

    I have a hotmail account. Outlook 2003 is my email editor. Prior to installing Firefox, I didn't have any problems with sending messages from Outlook. If I wanted to send something from web sites, the information would go to Outlook 2003. I'm not able to send anything ow.
    == This happened ==
    Every time Firefox opened
    == I installed Firefox .

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (101034)

  • Problem with using new Upload to FTP Host feature...

    I tried using the "Upload to FTP Host" feature to upload to GoDaddy.com. It worked fine the first time but now I get this message:
    Error:
    Error creating folder //images. Click Resume to try again. If this problem persists, try again later.
    I tried a few times and even waited two days but I am still getting the same message. So I tried to "Export as HTML" liked I used to do and now for some reason it will not create a CSS or Scripts folder. Only an images folder.
    Also, the first time the "Upload to FTP Host" worked for some reason not all the images were there and the transition box I have is not fading smoothly from one image to the next.
    Please help!!!
    Thanks,
    Melissa

    The issue looks like it might be related to a known issue with our FTP upload client. We currently incorrectly assume the server is configured to use / as the root direcotry. We have a fix for the issue, that will be released in an upcoming update (likely to be sooner rather than later). The workaround for it is actually pretty simple though. If you login to your FTP server, you should be able to see what directory you are at, and you can use the full path there to upload successfully.
    For example, if you login using a different FTP client, you might see something like /home/users/myuser/ in the address bar. In Muse, in the directory location, if you place /home/users/myuser you will upload to the correct directory. If you want to upload to a specific directory, simply add that to the end of the directory path.
    If you are unable to upload after following the above steps, as Abhishek says, it is likely a permissions error. Try exporting first and using a third party client to upload it and let us know if you are able to do so successfully from there.

Maybe you are looking for

  • Custom formatting with resource bundles

    This question was posted in response to the following article: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf6119c-7ff4.html

  • Internet explorer 11 in modern mode has some issues in files's downloads

    I describe my problem. By using Internet Explorer 11 in modern mode, when a download begins, happening a strange issue: the name of the file is changed, this means that the "." of the extension is changed in a "_", and if presents, also the "." in th

  • Curve 9360 "contenct blocked or server unresponsive"

    Hi Guys, I'm new here and I put this topic initially in the wrong forum (Tour). Anyway I'm trying to resolve a problem with my 9360 youtube videos. Everytime I wan to watch anything on youtube I got the same result :contenct blocked or server unrespo

  • Verity Collection Errors in CF9

    Hello, We are trying to create verity collections in CF9 and have successfully done so in the past. For some reason we are now getting errors and have not been able to find a resolution. Here are the errors: Error E0-0720 (I/O Filter): Could not load

  • HELP! Upgrade from tiger to SL

    Hi guys, I've wiped my HD and tried to install snow leopard onto it, however i get the 'cannot install without 10.5' message. How do I get around this? I've got a Macbook pro that i can run the disk on..don't know if that's any help| Thanks in advanc