How can I send Files in RMI

I'd like to know how can I send files from one computer to another, because I'm making a Client-Server application and I need to send files, in my program de client needs to send a file to the server and the server has to save the file in the computer where the server is running, and I'd like to know if there's some way to sends files with sockets.

Cleint
1. reads the name of the file sent by the server
2. get the file from sec memory
3. put it into a byte stream(read the file as byte)
4. typecast to inputstream of the rmi server
server
read the inputstream and write to the file

Similar Messages

  • How can I send files by FTP with Oracle Portal?

    I want to send some file by FTP.
    How can I send files by FTP with Oracle Portal?
    Any ideas?

    Enrique,
    Are you trying to transfer more content from remote locations to expose as items within a portal page? By itself, the Oracle Portal runs within the context of the database so I'm not sure how FTP at the OS level will help. However, if you're attempting to transfer files from a remote PC to upload within the Portal, here are a couple of suggestions.
    Option 1:
    A. Create a portal page.
    B. Convert a region to Items.
    C. When you're challenged to upload a file from the local OS, ensure you've a drive mapped to your remote location and pick the file to upload into the Oracle9iAS Portal.
    Option 2:
    Alternatively, the Oracle9iAS Portal 9.0.2 supports the WebDAV protocol(Web-based Distributed Authoring and Versioning Protocol) allowing endusers with a WebDAV client to upload content into the Portal seamlessly from their desktop.
    Pls. check out:
    http://portalcenter.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/OTN_CONTENT/MAINPAGE/PUBLISH_CONTMGMT/TECHNOTE_WEBDAV.HTML
    Hope that helps!
    Thanks,
    Sudi Narasimhan
    Oracle9iASPortal Partner Management/Development
    I want to send some file by FTP.
    How can I send files by FTP with Oracle Portal?
    Any ideas?

  • How can I send files via Bluetook from my Tour to other phones?

    How can I send files via Bluetook from my Tour to other phones?
    I have even been able to pair to the other device, but I don't see the option to send/copy/move files through Bluetooth.
    I can only send my Address book via bluetooth.
    Please help!!

    Hi and Welcome to the Community!
    See this KB:
    KB05409 Transfer a file using Bluetooth technology between two BlackBerry smartphones
    Substitute, in the KB, the appropriate instructions for your other device in place of the KB section for the receiving device. Be aware that RIM only supports BT file transfer between BBs...with other devices is technically unsupported. But, it usually works, as long as the two devices are paired, trusted to each other, and each have all of the correct BT services enabled for the configuration of the other device.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How can I send files from my macbook pro to my iPad air using airdrop

    how can I send files from my macbook pro to my iPad air using airdrop?

    Your going to have to find some alternative.  See Dukto will work.
    "Dukto is a simple application that allows you to share files between devices connected to the same (wireless) LAN network."
    http://www.tidal.it/?page_id=309&lang=en
    http://www.msec.it/blog/?page_id=11
    "Box lets you store all of your content online, so you can access, manage and share it from anywhere. Integrate Box with Google Apps and Salesforce and access Box on mobile devices" Rated the most secure cloud storage by SkyHigh Networks.  You can buy a license to run box one of your servers.
    https://www.box.com/
    Files Connect -- "Cloud Storage services like Dropbox, MobileMe iDisk, Google Docs/Picasa, Facebook photos, FTP, SFTP, WebDAV ... AFS (Apple File Shares) SMB (Windows shares)  protocols"
    https://itunes.apple.com/us/app/files-connect/id404324302?mt=8
    "The kiteworks mobile file sharing solution provides secure creation, viewing, and sharing of enterprise content on smartphones and tablets while providing IT and security teams the administrative controls to manage user privileges and access rights necessary to ensure enterprise security and compliance."  " Includes choice of private cloud on-premise."
    http://www.accellion.com/solutions/mobile-enablement/mobile-file-sharing

  • How can i send files from my iphone 4s to another iphone with my bluetooth?

    how can i send files from my iphone 4s to another iphone with my bluetooth?

    You can't.  That's not a feature of the iPhone.
    There's is an app called Bump that will let you transfer contacts and photos.

  • How can i send files stored in the database as an attachment?

    hello
    is it possible to send files witch are stored in database as an attachment ?
    how can i do that?
    thanks

    You need to use a Java stored procedure created within the Orcale 8i database.
    This Java stored procedure should import the java mail classes.
    Qurashi

  • How can I send files thru iChat?

    I would like to send some of my music files to my phone but I don't have the option of sending files to my phone. Why not and is there any way I can send files to my cellphone? I've tried the Bluetooth but that tells me I have to wait 9 hrs. Is there another way that's faster?
    Thank you
    Tamara

    That's probably your SIM card (the 32MB card in the phone).
    An alternative way would be to upload the files to a webhost (you can make a free website basically anywhere on the web, tripod.com comes to mind). Keep the files to a minimum and watch your bandwidth though because the service is free, Tripod will limit your downloads/uploads to something like 10MB/day which is crazy small.
    Once the file is uploaded to your webhost, use your phones WAP browser and punch in the direct link to the file and it should download. Keep in mind that you WILL BE CHARGED for downloading data onto your phone unless your phone plan incorporates that already.
    Hope this helps,
    -Ryan

  • How can i send file over messages in Mac OS X?

    Hi,
    Unable to send files from messages application in my Mac, i configured gmail account in messages so u can able to chat with my friends but i can't send any file to my friends. so is there any setting needs to be configure in preferences? please suggest me.
    Thanks in Advance,
    Suresh Balakrishnan.

    HI,
    In iChat 6 before you upgraded to Messages Beta were you able to Send Files ?
    There are also various ways to start this
    Try:-
    Dropping a file on a Buddy's name in the Buddy List
    Dragging a File to the text entry field in a chat.
    In a Video Chat drag a file over the Chat window and chose the half that says  Send File.
    As it is Google are you Buddies logged in via the Web Browser or a Jabber App or iChat on a Mac ?
    9:16 PM      Wednesday; March 28, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How can I send file through blue tooth?

    I turn on my blue tooth but I cant transfer files.

    You can only transfer files to another iphone or ipod and if it doesnt work try the app called bump but u can only share pictures,music,apps, and things like that.

  • I have 2 iCloud accounts. Can I delete one account so I can make use of additional space I purchased for the secondary account? Also iPhoto seems to only connect to the primary account? How do I send files to the secondary account?

    I have 2 iCloud accounts. Can I delete one account so I can make use of additional space I purchased for the secondary account? Also iPhoto seems to only connect to the primary account? How do I send files to the secondary account?

    Both accounts are completely independent from each other. In order to use the space that you have purchased for your secondary account, you must change it to become your primary account. Yes, as you said, services like photo stream only work with the primary account. Unfortunately, there is no comfortable way to just transfer data from one account to another one, but you can do it via a third party application e.g. via Dropbox: e.g. for photos: photos stored with your current primary account > manual transfer to dropbox > after you made your secondary account to the primary account,  transfer the photos back to your new primary account etc.

  • How can I send a jpg picture file to someone so that they can download it and use it?  I can send a picture in an Email, but they can't open it

    How can I send a jpg of a photograph to someone so that they can download the file and use it to put into an article?  I can send it in an Email, but there doesn't seem to be a way for the recipient to extract the jpg from the Email

    If the person is using a pc, make sure the picture has the suffix .jpg 
    Example:  your picture.jpg

  • How can I send multiple pictures to the Kodak link (under file & then order prints)? if the photos are not sequential can it be done?

    how can I send multiple pictures to the Kodak link (under file & then order prints)?  if the photos are not sequential can it be done?

    Does the order matter here?Because the photos will be sent for printing. If there is any other reason, can you please cite example.

  • How can I send a large video file from my iPhone 4?

    How can I send (by text) a (fairly) large video file from my iPhone 4 without it getting compressed first?
    If that's not possible is there a way to uncompress the video file one it is received onto the receiving iPhone?
    Or is there a way to sync or transfer a video file from iPhone to iPhone?

    ExFAT would be the best file system format, as it will handle files greater than 4GB.
    If exFAT is not available, go for FAT32.
    Just FAT is too limiting, so avoid that

  • How can One sender communication channel pick two file from two location

    Hello
    I have a requirement that how can One sender communication channel pick two file from two location.Both the file has same name...How to configure the one receiver communication channel.i dont have any IR,no mapping..Please help me...

    >
    Soumitra Sinha wrote:
    > Hello Vijay
    > I already done the adapter specific message attribute.i am getting the file name properly.but that is nothing to do with my req.i am again clearing my problem:
    > i have two folder   folder a,folder b.Both has the same file credit0002. i have two destination folder i have one sender and one receiver channel.I dont have any IR.How one sender channel can  pick file from two location and how one receiver channel can put in two location.please help me..
    Ok now I get your requirement.
    you cant achieve this -  how one receiver channel can put in two location if you dont have a dynamic configuration defined i.e Adapter specific attributes.
    easy way - involve IR mapping
    else
    have a adapter module to define your dynamic configuration.
    Ref: /people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules & /people/michal.krawczyk2/blog/2006/10/09/xi-dynamic-configuration-in-adapter-modules--one-step-further
    Set the dynamic directory/file name etc for your receiver adapter.

  • How can I send a document in iworks as a pdf file?

    How can I send a document in iworks as a pdf file?  My friends who have windows are not able to open any attachment I send them.  Very frustrating.

    Click 'Print' - then in the dialogue window in the bottom left, select save as PDF.
    Done!

Maybe you are looking for