How to Transfer files using socket remote method invocation?

hello guys,
i am working on java sockets...and i need to send and receive files though Java RMI. how will i go with it....
Please do help me in this regard
Edited by: sandeep_genevsoftech on Apr 4, 2008 4:32 AM

I am also developing a similar application of file transfer but using sockets in place of RMI.The file gets transfered if i run client and server on same m/c(as localhost),but shows "access denied" if run on different m/c.I suppose some security policies need to be set.Can anybody help?

Similar Messages

  • HOW TO TRANSFER FILE USING SOCKET

    HI....
    My project is backup sever
    I want to take backup of any number of file and of any size please tell
    me solution how i can do this for this i done the zip file of backup.
    I done this but i face some problem...
    regards
    Ahire sharad

    ahire, if what you want is to transfer a file over a socket here's an example of a sender. If you need the reciever code too, let me know.
    public void run()
              FileInputStream inFile = null;
              try
                   Boolean done = false;
                   int inByte;
                   inFile = new FileInputStream(filename);
                   byte[] byteBuffer = new byte[128000];
                   while(!done)
                        inByte = inFile.read(byteBuffer, 0, byteBuffer.length);                         
                        if (inByte == -1)
                             done = true;
                        else
                             out.write(byteBuffer, 0, inByte);
                   inFile.close();
              catch (Exception e)
                   try {inFile.close();}
                   catch (Exception ex) {ex.printStackTrace();}
                   try{Thread.sleep(10);}catch(Exception ex){}
                   JOptionPane.showMessageDialog(null,"Error sending file " + filename + "\nError: " + e.toString(),"Error", JOptionPane.ERROR_MESSAGE);
         }Pd: As I see your english isn't so good... I can help you in spanish or italian too... just let me know. Regards,
    Message was edited by:
    doy2001

  • How to transfer files using Oracle Managed File Transfer from Oracle EBS 12.1.3

    Hello,
    I'm looking for ideas to securely transfer files bi-directional between Oracle EBS 12.1.3 to IIS using Oracle Managed File Transfer and SOA.  Any help is greatly appreciated.
    Thanks

    Hi Hussain,
    In the Note 466649.1
    Edited
    I have installed R12.1.1
    Datafiles on installed on local file system /u01/EBS_DATa/*dbf, *.ctl, *.log
    doing non RAC to RAC conversion with ASM option,
    I am using ASM with RAC and created ASM disks (DATA, FRA, CRS) on Shared SAN disks between node1 and node2 which are DATA for CRD (control, redo and Data) files, FRA for archive files, CRS for cluster files while doing RAC instalation,
    now how i move my CRD on local file system /u01/EBS_DATa/*dbf, *.ctl, *.log to shared ASM disk DATA ???????
    Please describe with step wise,
    Thanks in advance.
    Regards,
    Vara
    Edited by: user13409653 on Jan 3, 2012 12:25 AM
    Edited by: user13409653 on Jan 3, 2012 5:10 AM

  • How to transfer file using FTP

    Hi All
    I want to transfer few files from one instrument running WIndows Xp to another PC running on Windows Xp.
    I do have installer LabVIEW 8.2 & also Internet Toolkit on the PC.
    Now do i need to install anything on instrument also from where i need to transfer the files.
    Thanks & Regards,
    Rajan
    Thanks & Regards,
    Rajan

    duplicate post

  • Oracle BAM to monitor transfer of files using sockets

    Hi,
    We have two programs transferring files using sockets. We wanted BAM to monitor the transfer.
    Would you please suggest if this is achievable in BAM , and if so , any pointers to how we may go about implementing it .
    Cheers,
    Anant.

    You could generate success/failure/progress from your utility to JMS or call BAM webservices to populate BAM Data Objects. Reports could be built on top of that.

  • How to transfer files from mac to ipad without using itunes

    how to transfer files from mac to ipad without using itunes ???
    as i want to use my ipad for official use as well...please suggest..

    well to be 100% technical, no you didn't but that aside, it good to know there are ways for people to transfer music into the default apps without iTunes, if they have a need.
    I tend to use 3rd party apps for documents, like your mentioned iExplorer etc, which are handy.
    I see from a search the two "apps" you mentioned are not iOS apps, which I had assumed, SyncPod and FreeSync are apps for your computer, that would explain their access to the default Music/Video apps.
    I had wondered how Apple had allowed iOS apps in the store that could get around the sandboxing in iOS of apps.
    Message was edited by: CGW3

  • How to transfer files like music from mac to ipad? tried it using mac but what happen was opposite!

    how to transfer files like music from mac to ipad? tried it few times but what happen was the opposite.

    If you want to sync your iTunes library on your Mac to your iPad ....
    Connect your iPad to the Mac and launch iTunes. Click on your iPad's name on the left side under the devices heading. Then click on the Music tab - and select the music that you want to transfer. Does your iTunes window look like this - with Sync Music checked and the playlists or albums checked as well like in the photo below?
    When you click on the apps tab do you have Sync Apps checked and all of the apps in the window below checked to sync as well?
    If you select all of the items under the different tabs in iTunes - music, apps, photos. etc. - when you sync - all of the selected content should sync over to the iPad.

  • How to transfer files from a window PC to iPad3?

    How to transfer files (mainly PDF files) from a window PC to iPad3? I am a new user of iPad, please tell me the basic method.

    You will first need an app on the iPad that supports PDF files - unlike a 'normal' computer the iPad doesn't have a file system, and everything on it has to be associated with an app. Apps that support PDFs include free apps such as Apple's iBooks and the Adobe Reader app.
    For iBooks, you can add the PDFs to your computer's iTunes via File > Add To Library, and they should then go into the Books part of your iTunes library. You can then sync them to the iBooks app on your iPad (which you will need to download from the store and install on the iPad first) by connecting the iPad to your computer and selecting it on the left-hand side of your computer's iTunes, and then using the Books tab on the right-hand side to select and sync those PDFs to it.
    Other PDF apps quite often use the file sharing at the bottom of the device's Apps tab
    If you don't have a copy then you can download the iPad manual from here : http://support.apple.com/manuals/ipad/

  • How to transfer file from ipod touch to i tunes. i have files in my ipod , ut itunes is  new so its telling if u sync the ipod all the files will be replaced but no files in the itunes.. so kindly help me how to transfer the files  from i pod to itunesb

    how to transfer file from ipod touch to i tunes. i have files in my ipod , ut itunes is  new so its telling if u sync the ipod all the files will be replaced but no files in the itunes.. so kindly help me how to transfer the files  from i pod to itunes......

    Some of the information below has subsequently appeared in a document by turingtest2: Recovering your iTunes library from your iPod or iOS device - https://discussions.apple.com/docs/DOC-3991
    Your i-device was not designed for unique storage of your media. It is not a backup device and media transfer was designed for you maintaining a master copy of your media on a computer which is itself properly backed up against loss. Syncing is one way, computer to device, updating the device content to the content on the computer, not updating or restoring content on a computer. The exception is iTunes Store purchased content.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer - http://support.apple.com/kb/HT1848 - only media purchased from iTunes Store
    For transferring other items from an i-device to a computer you will have to use third party commercial software. Examples (check the web for others; this is not an exhaustive listing, nor do I have any idea if they are any good):
    - Senuti - http://www.fadingred.com/senuti/
    - Phoneview - http://www.ecamm.com/mac/phoneview/
    - MusicRescue - http://www.kennettnet.co.uk/products/musicrescue/
    - Sharepod (free) - http://download.cnet.com/SharePod/3000-2141_4-10794489.html?tag=mncol;2 - Windows
    - Snowfox/iMedia - http://www.mac-videoconverter.com/imedia-transfer-mac.html - Mac & PC
    - iexplorer (free) - http://www.macroplant.com/iexplorer/ - Mac&PC
    - Yamipod (free) - http://www.yamipod.com/main/modules/downloads/ - PC, Linux, Mac [Still updated for use on newer devices? No edits to site since 2010.]
    - 2010 Post by Zevoneer: iPod media recovery options - https://discussions.apple.com/message/11624224 - this is an older post and many of the links are also for old posts, so bear this in mind when reading them.
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive - https://discussions.apple.com/docs/DOC-3141 - dates from 2008 and some outdated information now.
    Copying Content from your iPod to your Computer - The Definitive Guide - http://www.ilounge.com/index.php/articles/comments/copying-music-from-ipod-to-co mputer/ - Information about use in disk mode pertains only to older model iPods.
    Get Your Music Off of Your iPod - http://howto.wired.com/wiki/Get_Your_Music_Off_of_Your_iPod - I am not sure but this may only work with some models and not newer Touch, iPhone, or iPad.
    Additional information here https://discussions.apple.com/message/18324797

  • How to transfer file from application server to presentation server in background?

    Hi Experts,
    How to transfer file from application server to presentation server in background?
    Thanks in advance
    Namita

    Thanks Raman and Challa,
    We want to move file from application server to Shared folder, not on local machine. We checked FM which you guys have provided but those are not able to read file from application server.
    We need this program to run in background so that we can use this in daily process chain.
    Appreciate your inputs on this.
    Thanks,
    Namita

  • How to transfer files to and from the BB PlayBook

    Overview
    The following sections outline different methods of transfering files to and from the BlackBerry® PlayBook™.
    Wi-Fi® Sharing
    Complete the following steps to share files over a Wi-Fi connection:
    From the BlackBerry PlayBook home screen, select the settings icon.
    Select Storage and Sharing.
    Toggle Wi-Fi Sharing to ON.
    Tap Properties to verify network identification information. (PlayBook name, password etc)
    From a Windows or Mac based computer on the same network as the BlackBerry PlayBook, navigate to the IP address of the PlayBook which can be found under Settings > About > Network.
    On a Windows computer, open the Run dialog box and type \\127.1.1.1 (where 127.1.1.1 should be replaced with the actual IP address of the BlackBerry PlayBook)
    On a Mac computer, select Go -> Connect to Server... and type smb://127.1.1.1 (where 127.1.1.1 should be replaced with the actual IP address of the BlackBerry PlayBook)
    Users will then connect to the media folder which contains several subfolders such as documents, music, photos, videos etc.  Users can then move files between the computer and these folders.
    File Sharing with a Mac via USB connection
    To share files between a Mac and the BlackBerry PlayBook, BlackBerry® Device Manager will need to be installed. Complete the following steps to install BlackBerry Device Manager:
    Connect the BlackBerry PlayBook to the Mac.
    On the desktop or within Finder, double click BlackBerry PlayBook CD.
    Double click the BlackBerry Device Manager Installer to start the installation process.
    After reviewing the Read Me and License Agreement click Continue Installation.
    Reboot the computer when prompted.
    After the reboot is complete and the PlayBook is started, a message may be presented stating that a new network interface has been detected.  If this is the case, click on Network Preferences and click Apply.
    You may receive the error message  "You can't install the 'Network' preferences pane because it is already installed". *** If you receive this message,  See the additional notes for further steps, otherwise continue to step 8.
    After the PlayBook has been setup in Network Preferences, the PlayBook share will appear on the desktop whenever the PlayBook is connected to the computer.
    Click the Playbook icon on the desktop to display the PlayBook share.  Users can then move files between the computer and the PlayBook.
    File Sharing with a Windows® PC via USB connection
    To share files between a Windows based PC and the BlackBerry PlayBook, BlackBerry Device Manager will need to be installed. Complete the following steps to install BlackBerry Device Manager:
    Connect the BlackBerry PlayBook to the computer via USB cable.
    If BlackBerry Device Manager is not yet installed, the PlayBook will display a screen entitled Installing Drivers.
    On the computer, double click the BlackBerry PlayBook CD drive icon.
     Open the Drivers folder.
    Double click Setup.exe
    After selecting the appropriate region and accepting the License Agreement select Install.
    Select Finish and then OK to the prompt confirming that the PlayBook will need to be disconnected and then reconnected prior to use.
    Once reconnected to the computer, the BlackBerry PlayBook will be mounted as a Network Drive labelled PlayBook [PIN: 500AAAAA].  Double click the network drive icon to access the PlayBook folders.  Users can then move files between the computer and the PlayBook.
    Environment
    BlackBerry® PlayBook™
    Additional Information
    If you receive the error message  "You can't install the 'Network' preferences pane because it is already installed" while attempting to install the Network Device, complete the following steps:
    1. Click Ok and Navigate to System Preferences > Network
    2. Click Ok to accept the network changes. If you do not see the acceptance prompt, continue to the next step.
    3. Click the "+" under the listed device.
    4. Click Create on the RIM Network device interface screen
    Additional Notes:
    File and Folder creation is only available on the playbook within the sub directories of the file structure.  No folders can be created on the root folder of the drive.  This is by design.
    The main folders of the playbook are not meant to be modified renamed deleted or changed.  This is by design.
    While any file type can physically moved to the playbook the files capable of being opened by the playbook are still limited to KB26606, as well as KB26518.
    PLEASE DON'T FORGET TO GIVE KUDOS BY CLICKING THE STAR BELOW. THANKS

    After you connect your tablet via wifi in the network, you can also share files doing this:
    I personally have windows 7 in my laptops, and when I need to transfer files using my laptop, I open network and sharing center, then I click on see full map and finally I click on the icon  playbook-a185, the next screen will show you 2 folders: certs and media.
    Another way is opening windows explorer and on the left under network, see the computers listed on the network, find playbook-a185, click on it and will open the folders.
    Note: make sure you have file sharing and wifi sharing ON on the playbook. I turn OFF password protect so will be easier to access your files, and when you are done, you can turn password protection ON.
    Give kudos by clicking on the start please.
    Thanks!!

  • How to transfer files from Pc to mobiles?

    HI,
    How to transfer files from Pc to mobiles?
    what are the Methods to do transferring files.
    Sri

    hi
    tell me which type of files u want to transfer
    are they text files or j2me software
    clear it
    R

  • How to transfer files from Mac to Mac

    How to transfer files/programs between Mac to Mac

    A41KJ wrote:
    How to transfer files/programs between Mac to Mac
    I have always used Target Disk Mode
    http://support.apple.com/kb/HT1661
    Good Luck
    Pete

  • How to transfer files from windows 7 to macbook pro

    how to transfer files from windows 7 pc to my new macbookpro

    You can use your external hard drive that is used to backup your important data to transfer the data from your PC to your Mac.
    If your Windows 7 PC is a laptop and you live near an Apple store, make an appointment at the Genius bar where they will help you transfer the data you want transferred from your PC to your MBP.

  • Send a picture file using sockets

    Hi,
    Could someone please tell me how I can send a picture file using sockets across a TCP/IP network? I have managed to do it by converting the file into a byte array and then sending it but I dont see the data back at the client when I recieve the file. I just see the byte array as having size 0 at client.
    Byte array size is correct at client side.
    //client code
    System.out.println("Authenticating client");
              localServer = InetAddress.getLocalHost();
              AuthConnection = new Socket(localServer,8189);
              out = new PrintWriter(AuthConnection.getOutputStream());
              InputStream is = AuthConnection.getInputStream();
              System.out.println(is.available());
              byte[] store = new byte[is.available()];
              is.read(store);
         ImageIcon image = new ImageIcon(store);
              JLabel background = new JLabel(image);
              background.setBounds(0, 0, image.getIconWidth(), image.getIconHeight());
              getLayeredPane().add(background, new Integer(Integer.MIN_VALUE));
    //extra code here
              catch (UnknownHostException e) {
    System.err.println("Don't know about host: LocalHost");
    System.exit(1);
              catch (IOException e) {
    System.err.println("Couldn't get I/O for "
    + "the connection to: LocalHost");
    System.exit(1);
    //server code
                   DataOutputStream out = new DataOutputStream(incoming.getOutputStream());
                   FileInputStream fin = new FileInputStream("3trees.gif");
                   byte[] b = new byte[fin.available()];
                   int ret = fin.read(b);
                   out.write(b);

    i used OutputStream as
    OutputStream out = incoming.getOutputStream(); and flushed the stream too.
    But I still get the same output on the client side. I tried sending a string and it works , but I cant seem to be able to populate the byte array on the client side. It keeps showing zero. Please advise.
    Thank you.

Maybe you are looking for

  • ICal - Google Cal - Google Tasks - ICal Tasks - Iphone?

    I have two mac computers, one at work and one at home, and an iphone. I also have an gmail account I use daily..so the question is how can I set it up so I can follow my calender iCal at home and work computer and on the iphone and gmail, everything

  • How can I set my date and time to ebay network time server?

    In the system preferences I would like to set the date and time to ebay UK time? I thought a quick google would be bring up the server and I can't find it. At the bottom of every ebay page there is a link to official ebay time But its not a live feed

  • Doubt on import utility

    I want to export data from 10g release 2 database and import it into the 11g database . The database structure varies ie most of the schemas thati need to import are new ones which dont exist in the 11g database. When I do a full database export from

  • Unable to catch SocketException in Thread

    I have a peculiar problem with my client-server application. The scenario is quite simple: 1. A ServerSocket object accepts a new connection from the client 2. The accepted socket then opens an input and output stream and waits for request from the c

  • (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed

    Hello, I'm almost giving up on this...I've been messing with this for too long now... I get this error message: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM  TYPE=B MSHOST=exts0002 GROU