Is there any way to get the files from other computer ?

Hai all,
I have 2 computers connected. I know the IP address of other computer. Is there any way to get the files from other computer. (for e.g. I want to get the files from specific folder. In Java netwroking is it possible? (Any programs)
regards,
Namanc

Bro Take it easy.
Think you need to send a Image file named ("abc.gif")
now develop a server using ServerSocket and connect it in local IP and any PORT
For example i think ur server is connected in "localhost" and 9000 port.
Now make ur server educated using some commands.
For example:
FileName: <File Name String>
[Means new file is sending by connected client]
FileSize: <File size long or int value>
[ So that ur server can determind about the total length of sender file]
DataModeOpen
[Now your client will send its image data, this command means your client software is sending data]
fjadlkfjaofaijojfwoeiurfodkjflsajlfksa
l23j4lj23lkjlasjfoq23j4rokjelfkjasldkf
2o3j4lk2j3ljslakdjf2l3j4 l23kjlk23k4j
DataModeClose
[Means file sending finished]
Close
[Means your client connection is closed]
Now develop a client supporting this command.
For example(Server):
String getFileName=null;
long getFileSize=0;
public handleCommand(String getCmd) {
    if(getCmd.startsWith("FileName")) {
            String[] splitData=getCmd.split(":");
            this.getFileName=   splitData[1];
            outPutStream.writeBytes("+OK");
    } else if(getCmd.startsWith("FileSize")) {
            String[] splitData=getCmd.split(":");
            this.getFileSize=Long.parseLong(splitData[1]);
            outPutStream.writeBytes("+OK");
    } else if(getCmd.startsWith("DataModeOpen")) {
           //data mode open so receive data
          receiveData();
          outPutStream.writeBytes("+OK");
    } else if(getCmd.startsWith("DataModeClose")) {
          //close client socket
         getClientSocket.close();
}For client:
DataInputStream dataIn=null;
BufferedOutputStream bout=null;
public sendFile(bytes[] getBytes) {
        //if ok found then do other or show error message
    if(sendCmd("FileName:"+getFileName)) {
        if(sendCmd("FileSize:"+getFileSize)) {
            if(sendCmd("DataModeOpen")) {
               bout.write(getBytes);
            } else {
               showError(3);
        } else {
               showError(2);
   } else {
        showError(1);
}i think it will help u

Similar Messages

  • Is there any way to get the file for your site from Creative Cloud?

    I lost the file for my Muse site and was wondering if there was any way to get the file from the server or from somewhere in Creative Cloud.
    Thanks.

    Are you Mac or Windows?

  • Is there any way to get the server app other that through the app store. We do not have our system conneted to a network. I typical downloaded items on a non-apple system.

    is there any way to get the server app other than through the app store. The system that I need it on are not connected to the internet.
    We run a closed-loop network of apple systems and I tipically downloaded updates on a non-apple system that was on the internet.
    Any ideas?

    I did buy the server app, went to the app store to download it. This system I'm using for downloads is Snow Leopard 10.6.8, it shows that I can download it but only as an Install which says I need 10.8. I can't seem to find a way for it to just download as a package or .dmg file so that I can copy it to DVD/CD or flash drive.

  • Using pages, I saved the wrong file thereby overwriting the file I want.  Is there any way to get the file I want back?

    Is there any way to recover a file if you have overwritten it?

    When I do that: Pages>Revert to > I don't get a chance to "Browse all Versions"  Instead it says, "no Document"

  • Is there any way to get the phone from taking over...

    Whenever I start my Avalon, the phone says that it is "Starting Driving Mode for You", and then starts playing music.  It changes whatever channel I have on, and will even start up Audio if I have it shut off.
    This is really a pain.  Is there any way, short of killing the bluetooth pairing, to tell the phone to leave my radio alone?
    Thanks.

    Hi Jay___S,
    Welcome to the forum! 
    For which specific phone model is this? If this is for a Lumia WP8, are you using the built-in 'driving mode' app under Settings, or a downloaded car mode app from the Store? Has the phone been paired with other Bluetooth devices aside from your Avalon carkit, like car speakers or stereos? Is your phone's software updated when checked under Settings > Phone update? 
    We'll wait for your response. 

  • HT1296 i had to have my computers hard drive reformated so of course lost all the music in itunes. Is there any way to get the music from my ipod back on my computer and add new music to ipod?

    After reformating my computer isit possible to get the music from my ipod back on the computer and to add new music that I have downloaded?

    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • Is there any way to get the music from my iPod on to my iPhone. My iTunes was deleted off my computer . Anyway to recover the music?

    Ok wy iTunes got deletes off my computer and I had an iPod 3 now I have an iPhone 4 And I Reyes to buy some music using the same iTunes account but it says purchased and I'm just wonderin if there is anyway I can get the music I had on my iPod to my iPhone?

    It has always been very basic to always maintain a backup copy of your computer/files/docs/pics/music/etc, for just such an occasion.
    Use your backup copy to put everything back.
    If for some reason you have failed to maintain a backup ( not good), then you can transfer itunes purchases from an ipod:  File>Transfer Purchases
    Once the music is in itunes on your computer, then you can sync to your iphone.

  • Is there a way to get the history from find my iphone?

    My iPhone disappeared from my car while it was valet parked at the airport. I did a find my phone when I realized I had left it in the car, and it showed the location to be valet parking lot. I assumed all was well, did a remote lock operation, and enjoyed the vacation. Is there any way to get the log from find my phone to show that it was where it was when I did the find operation?
    Sam

    No.

  • I bought a new computer and downloaded i-tunes.  is there some way to get the songs from my i-pod to my new i-tunes library?, i bought a new computer and downloaded i-tunes.  is there some way to get the songs from my i-pod to the i-tunes library?

    I bought a new computer and downloaded i-tunes.  Is there any way to get the music from my i-pod nano to my "new" i-tunes library (without having to import all the CDs again)?

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • I have an iPod whose contents I want to transfer to a newer Ipod.  At some stage I lost the music files from my library.  Is there any way to get them back from the older iPod and put them onto the newer one again?  I stupidly synced the wrong one.

    I have an iPod whose contents I want to transfer to a newer Ipod.  At some stage when I thought I was syncing correctly I wasn't so I lost the music files from my library.  Is there any way to get them back from the older iPod and put them onto the newer one again? 

    Have you not got a backup of your content on, for example, external drives ? If not then you could have a look to see if any of the utilities mentioned in this old post still exist and work : https://discussions.apple.com/message/11014893?messageID=11014893#11014893

  • Is there any way to get the query used in discoverer from backend??

    Hi All,
    I am new to dicoverer.
    Is there any way to get the query used in discoverer from backend??
    Thanks,
    Sachin

    Hi,
    you can view the SQL from within the discoverer menu:
    in desktop: View-> SQL Inspector
    in Plus: Tools-> Show SQL
    The SQL in the DB tables is encrypted so it's a problem getting it from there.
    You can export the workbook into SQL but it is not working for every worksheet (subquery, inline pivot tables...)
    you can create a batch file to export them all using the output of this script:
    select null,null,'echo off'
    from dual
    union all
    select distinct
    qs.qs_doc_name Workbook_name,
    qs.qs_doc_details Worksheet_Name,
    'start /wait <path>\dis51usr.exe /connect '||'&p_user_name'||'/'||'&p_password'||'@'||'&p_env'||' /apps_user /apps_responsibility "&responsibility" /opendb '||
    chr(34)||qs.qs_doc_name||chr(34)||' /sheet "'||qs.qs_doc_details||'"'||' /export SQL "C:\Export Discoverer SQL\'||qs.qs_doc_name||'-'||qs.qs_doc_details||'.sql" /batch'
    from eul_us.eul5_qpp_stats qs
    where qs.qs_doc_name is not null
    --order by 1,2
    union all
    select null,null,'echo off'
    from dual
    union all
    select null,null,'exit'
    from dual

  • Is there any way to get .wav files to play on iOS devices?

    Is there any way to get .wav files to play on iOS devices? I know some apps can play .wav however I was looking to have safari load a suitable player as needed, but it shows a audio file with a line across it... and does not play the file. Any workaround? Thanks,
    Fabio

    Hi James,
    That is very helpful, thanks. However, that ends up presenting two other problems...
    Initially, the original .wav file has to be downloaded somewhere, how does one download a file from Safari to the phone and then open the file with the app? Is there any way to configure iOS to always use an app for a particular file type? How does iOS handle file types? Do you know why safari does not allow add-ons? Can I configure another app as the 'default' browser?
    Once again, thanks for pointing this out.
    Best wishes

  • HT201272 IS THERE ANY WAY TO GET PROGRESS BACK FROM A DELETED GAME THAT HAS BEEN BACKED UP ON MY COMPUTER? I HAVE TRIED TO SYNC THE IPOD AND THE PROGRESS DOESNT RETURN, ITS MINECRAFT.

    is there any way to get progress back from a deleted game off ipod/ it was backed up to the computer but when i synced the ipod the progress didnt return.  its minecraft game

    - Just transfer the apps and iBooks to the computer by:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    In iTunes 11 use Control+B to show the Menu bar then go to iTunes>File>Devices>Transfer Purchases
    - Preferences and photos taken by the iPad are included in the backup that iTunes makes
    nursebones wrote:
    No music. All my music is on my computer and my iPOD. Just need to backup apps, preferences, iBooks, and photos taken on the iPAD.

  • Is there any way to collect the file list from UTL_FILE_DIR.

    I expect the use "Oracle supplied package UTL_FILE" to import our customer order shipments to table by XML format files. I already did the procedure to import one XML file into Table by DBMS_XMLSave.insertXML and UTL_FILE. GET_LINE. And it did work.
    My question is :
    Is there any way to collect the file list from UTL_FILE_DIR. (I put all import XML files into `/usr/tmp?, I want to get all file names from this folder and feed them into UTL_FILE.FOPEN.)
    Thanks in advance

    UTL_FILE_DIR is a very dangerous and deprecated parameter. Oracle very specifically recommends not using it. You should be using directory objects instead.
    As for doing a directory listing, you can use Java stored proc. External procs/functions are not required.
    The following sample shows how to use such a Java stored proc to insert the result of a directory listing into a session temporary table:
    create or replace and compile java source named "ListFiles" as
    import java.io.*;
    import java.sql.*;
    public class ListFiles
            public static void getList(String directory, String filter)
            throws SQLException
                    File path = new File( directory );
                    final String ExpressionFilter =  filter;
                    FilenameFilter fileFilter = new FilenameFilter() {
                            public boolean accept(File dir, String name) {
                                    if(name.equalsIgnoreCase(ExpressionFilter))
                                            return true;
                                    if(name.matches("." + ExpressionFilter))
                                            return true;
                                    return false;
                    String[] list = path.list(fileFilter);
                    String element;
                    for(int i = 0; i < list.length; i++)
                            element = list;
    #sql {
    insert
    into directory_list
    ( directory, filename )
    values
    ( :directory, :element )

  • Is there any way to get the height/width of an image before importing it in the indesign document.

    Hi All,
    I need to obtain an image's attributes such as dimensions (height, width in pixels) without placing image in indesign document.
    I have full path of the image (say abc.jpg is stored at c:\my pic\abc.jpg).
    I have obtained the IDFile for this image, tried getting size using GetFileSize() which correctly return size in bytes.
    Is there any way to get the height/width of image without importing it in the indesign document.
    Please, give me some hints. I have spent quite a lot time digging in CHM. I have searched in FileUtils, IDFile API's but found no method which serves this purpose.
    At this point I am clueless where to search next.
    Any help will be appriciated.
    Just a point to mention, I am able to get image height and width for an image in indesign doc though Its not my requirement.
    Thnx,
    D.

    You might be able to examine the contents of the PlaceGun after calling kImportAndLoadPlaceGunCmdBoss without actually placing the image in a document. Not sure, but would be worth looking at.
    Otherwise you will probably have to write platform specific code, ideally with a generic platform-independant wrapper (see SDKSamples/paneltreeview/PlatformFileSystemIterator).
    For the Mac, look at CGImageGetWidth() etc., not sure what the best option is for windows.
    Perhaps Quicktime could provide you with a platform independant solution.

Maybe you are looking for

  • Customer payment terms issue

    Hi I need one urgent solution In customer master data the payment terms is znz8 which is due 20th of the following month. But they want it if we do invoice  11/06/2008(today) the due date shpuld be 11/07/2008. for that in customer masta we need to ch

  • Change of Gl account centrally

    Description change for Korea I am trying to change the Korean Translation for Account xxxxxxxx but SAP will not allow me to change for Korea.  Do you know of a way I can change? Thank you, I appreciate any help you can provide

  • Retained Earnings Roll Forward (GAAP vs. STAT)

    Does anyone have any suggestions on how to set Closing Rules, so that you are able to run separate Retained Earnings roll forward, one for GAAP entries, and the other for Statutory Adjustments, with the Book Code field being your point to differentia

  • DataSource - Bad Datasource Offset

    Hai to all,        I designed one form using UDO.All add,update working fine.My problem is in header part i have CFL one one text box. If i click the choose the item in the CFL automatically the items will be filled in the grid. But my problem is if

  • How do you control number of cycles shown on chart

    How do you control number of cycles shown on chart?  I've selected a sweep chart and I'm not seeing the vertical bar on the chart when the program runs.  This is probably because I'm not seeing a full cycle of the periodic signal I'm trying to displa