transfer « File « Java Network Q&A

Home
Java Network Q&A
1.API
2.bluetooth
3.Client
4.connection
5.Cookie
6.Development
7.Email
8.File
9.ftp
10.http
11.HttpClient
12.https
13.ip
14.Network
15.OS
16.RMI
17.Security
18.Server
19.Socket
20.tcp
21.UDP
22.url
Java Network Q&A » File » transfer 

1. How to transfer files from one computer to another over the network using Java?    stackoverflow.com

I need a simple application, preferably a cross-platform one, that enables sending of files between two computers. It just need to accept and send the files, and show a progress bar. ...

2. Java File Transfer getting stuck halfway    stackoverflow.com

I am trying to send a file (an image sent as a byte array) with the client and then the server should receive said byte array to make further use of ...

3. Transfer file over socket    stackoverflow.com

I found this code witch I tried and it works great but(!). I want to store the file in a folder that I will choose and also get it ...

4. File transfer from C++ client to Java server    stackoverflow.com

I have a c++ client which needs to send a file to a c++ server. I'm splitting the file to chunks of PACKET_SIZE (=1024) bytes and send them over a TCP ...

5. How to implement file transfer with Java sockets?    stackoverflow.com

I am working on a chat implementation with Java sockets. I have focused on few functionalities, like authentication, one person chat and a group chat. I was thinking about adding file ...

6. implementing a Intelligent File Transfer Software in java over TCP/IP    stackoverflow.com

Can you please provide answer to some of these? Thanks

7. How to transfer a file in a client/server Java application    stackoverflow.com

I am currently working on a homework assignment and I am thoroughly stuck. I am on the last question and I just can not figure out how to go about ...

8. How can I transfer files from Server-Side to Client using Sockets?    stackoverflow.com

I'm having trouble on where to begin performing this task, I'd like some examples or input on how I should set up my server/client components to receive and send data including ...

9. Large file transfer with sockets    stackoverflow.com

When i m transfering a large file using socket programming, the received file is incomplete i.e. it is an mp3 file which when i play sounds weird. The code is:

Server side:
File myFile ...

10. Client-server application file transfer    stackoverflow.com

I am currently trying to design a client-server application, something like this: the user connects to the server and when the authentication is OK the server send to the user some ...

11. failing to transfer a file through a socket, java    stackoverflow.com

here's a little code. This class runs on two computers, one side sends a file (send()) and the other one recieves it (read()). I know send() works because when i run ...

12. Simple Java file transfer program problem    stackoverflow.com

I am trying to do a simple file transfer from server to client. It needs to go like this:

Client asks for file. Server sends the file to ...

13. Wrong file transfer over java Socket    stackoverflow.com

this afternoon I wrote this class whose aim is give a easy way to exchange send a file over TCP Socket.
The problem it that, despite the final file size is correct, ...

14. Java network file transfer problem    stackoverflow.com

I am writing a small java program that can measure the speed of my local network. It is the first time I am working with sockets but I've put together a ...

15. File transfer through Socket in java    stackoverflow.com

I'm making a Network File Transfer System for transfering any kind of file over a network in java. The size also could be of any kind. Therefore I've used UTF-8 protocol ...

16. File transfer through socket    stackoverflow.com

Sorry But I've changed the question. In this code if the files are sent at the first time(no matter the number files i'm sending.) the code works fine. But when ...

17. Socket file transfer    stackoverflow.com

In this code if the files are sent at the first time(no matter the number files i'm sending.) the code works fine. But when I put the FileSender in ...

18. query on file transfer using java socket programming    stackoverflow.com

I need to move few files in a directory to another directroy in another machine. The source and destination directory names are known in advance. These directories will be ...

19. transfer a file between server and client    bytes.com

You used a FileInputStream to read the dta from file on the client, so you can use a FileOutputStream to write the data as file on the server. By the way,you ...

20. file transfer roblem    coderanch.com

21. File Transfer via Sockets    coderanch.com

Well I'm not sure if you're still reading this reply since I am replying almost about 3 weeks later but maybe your'e reading this. Anyways, I had a similar problem when I was attempting the same project that you are currently working on. The way to get around this is to read each BYTE one by one. If you used a ...

22. Secure File Transfer    coderanch.com

Hi!! Everyone, I am Ashwin Philar at the University of Alabama at Birmingham. I am a graduate student of the Computer Engineering Department here. I am doing a project that involves invoking a cgi script invoked using https:// protocol and downloading the files whose names appear on the resulting web page from a remote server onto my local machine. Has anyone ...

23. File Transfer and Security    coderanch.com

Hi I have a simple client/server file transfer program which I need to make more secure. I want to use DES to encrypt the file before it gets sent to the server. I know this isn't a security forum but I thought that someone with socket experience might have been faced with this before.

24. transfer file    coderanch.com

Originally posted by Peter den Haan: The simplest way to implement a progress tracker would be to precede the file with a number indicating the length of the file; for instance, chop a long up in four bytes and write them to/read them from the stream. You can then compare the number of bytes received with the total number of bytes ...

25. File Transfer :: Port?    coderanch.com

Hi, Can anyone let me know whats the port in which the file transfer can be done in such a way that the server doesnt keep waiting in that particular port.... and doesnt slow the process! in the server! Is the port 21? fine? would it work without any disadvantages. Do let me know Thanks in advance regards Smitha

26. File transfer using HTTPS/SCP protocol    coderanch.com

Hi All, I need to transfer files from one machine to another machine (ex: win to unix) using HTTPS/SCP protocol for every 6hrs.Could you please tell me how to do this using this protocol. I have done using FTP protocol.But I don't how to do this using HTTPS...Could you please tell me which API,I have to use it. I am using ...

27. File Transfer in Java Using Sockets    coderanch.com

28. File transfer over WAN using sockets    coderanch.com

Hi all, Have written a small client app to transfer a text file to a server running on another pc in the LAN... This works beautifully!! Not that difficult to do over a LAN right ? So My concerns deal with WAN communication... - What security issues must i cater for (like firewalls) and how do I do that ? - ...

29. File transfer using sockets    coderanch.com

Hi, I have written a client server pair that sends a txt file from client to server over a LAN setup. When trying to use the same pair to transfer the same file over the internet the operation times out. I am assuming that if I have coded correctly then the timeout is because of network traffic and routing from the ...

30. Re: File Transfer using Java    coderanch.com

31. File transfer    coderanch.com

Hello everybody, I'm quite confused and could somebody pls clarify me.Thanks in advance.Well,here it goes.... I would like to tranfer files between client and server from my GUI.Here are the steps I've written it down my self, please correct me if I'm wrong. 1.Create a button which on click will open a browser window to choose a file. 2.After selecting the ...

33. File transfer    coderanch.com

34. File Transfer in Instant Messenger    coderanch.com

Hey Joe, Thanks for your suggestion...I know the basics of I/O in Java....the I/O stream,etc...but i dont know how 2 transfer it in a client-server enviornment....How to recognize the file type and other issues matter while you transfer files.I also gotta see to it that it is platform independent...so i cant hard-code a fixed number of files.Its gotta be able to ...

35. transfer a set of records(.mdb file) from client to server    coderanch.com

I need some help from you people on JAVA. First of all let me brief you about the requirement and what I am trying: Requirement: 1) I want to transfer a set of records(.mdb file) from client to server. What I am trying: 1) I pulled the required records into a recordset. 2) I created a hash table and converted the ...

36. transfer files between 2 pc's    coderanch.com

Hi, I have an application where the user can select a computer on the LAN and when user selects transfer a set of files should be transferred from my computer to the selected computer.I have to do this using sockets .can some one please give me some idea on how to start this. I was thinking of writing a server socket ...

38. File Transfer    coderanch.com

40. Best way to file transfer a over sockets?    coderanch.com

hi jfolks, I am trying to transfer microsoft doc/excel/etc.. through sockets, I do this transfer byte by byte since I cannot afford to loose even a single byte. This approach seems to be very slow and a bottleneck Can anyone can suggest me what stream would be the best way to transfer? I tried byte[] which was fast but not effective, ...

41. file transfer between server    coderanch.com

Hai ranch mates... I need a small help from you. Problem: I am developing an application for my client.He uses two different applications for accounting and processing system on two different servers. he has the accounting system alreday developed and in production. now iam developing a processing system for him which involves different actions like Getting the Raw Material processing dispatching ...

43. Transfer file from server to server    coderanch.com

44. File transfer through Socket    coderanch.com

Hi, I'm implementing a client-server application in Java. I want to store all my shared files on a server and the application itself (which makes use of thes files) on different workstations. How can I send these files from the server to the workstation through LAN and vice versa? Can anyone give me some code or explain what steps I have ...

45. Client Server File transfer    coderanch.com

Hi everyone. I'm building a client-server file transfer project. I was told to use DataOutputStream and DataInputStream. I've some codes that I've found from a Java cookbook which is able to open a connection port to send a message to the server. I've managed to get the client and server to communicate. However, I'm kinda lost on how can I get ...

46. How can we transfer a file from one server to another server?    coderanch.com

Hi Friends, I want to transfer a file (tha file may be a text file or word document or a PDF file or a JREG file) from one server to another server. How can we do this in Java? What are the possible ways to do this? Please tell me about this. Thanks Venkat

47. Transfer files and message over a single socket at the same time?    coderanch.com

Hello guys, I want to know if its possible to use the same socket to transfer two things at the same time. // set up input stream for objects input = new BufferedReader(new InputStreamReader(clientsoc.getInputStream())); // set up output stream for objects output = new PrintWriter(new OutputStreamWriter(clientsoc.getOutputStream())); output.println(nickName + " joined the chat."); output.flush();// flush output buffer to send header information I ...

48. File Transfer in Apache Web Server    coderanch.com

49. Transfer multiple files from Server to Client using Sockets    coderanch.com

Hello all, A project that I'm working on needs to pass 3 text files from the Server to the Client. This what I'm doing Server side :Wait for client, once connected to client pick up the files and transmit it to the client one after another. Client side :Connect to server and accept the files one after an other. I'm only ...

50. Transfer file by socket    coderanch.com

51. File Transfer Over the Network    coderanch.com

To transfer files over a local network, would a good way to convert to bytes (1024), then send across the network? I'm building a professional file transfer program for a company with certain "file permissions" on the server. Only certain users can access certain directories. I haven't started yet, but the paperwork is being approved now. I just need to know ...

52. Chat Client and file transfer    coderanch.com

53. File transfer from Client to server    java-forums.org

hi,, I've been trying to make an application where the user select several fiels using JFileChooser and then the program read all the files and then save the content of all in 1 file and then send it to the server using client/server sockets, I've tried many ways and non seems to working .So whats the proper way to do it ...

54. File Transfer with Sockets    java-forums.org

Hi anybody like to tell me what I'm doing wrong here: I'm trying to transfer a file with sockets and set the socket with the relevant IP and Port number, but while the client seems to send all the data , the server receives all but the very last buffer (approximately). The file is not corrupted, and the client code executes ...

55. how to transfer a large file from server to client    forums.oracle.com

hi iam assigned to write a client &server programs for transferring a large file (say 30 KB) from server to client. It has to be implemented over UDP.This file has to be sent as a sequence of small messages with 1KB payload via the network emulation gateway. Iam going through sun java tutorial on UDP but it doesn't answer anything about ...

57. Socket program to transfer a file- Help me    forums.oracle.com

Hi friends, I am a newbie in socket programming. So kindly please help me to transfer a file from my machine to a remote machine using IP address . I cant able to run the program on a remote machine. So i just able to run the program only in my machine. By the program i need to send the file ...

58. Client server file transfer always got 4380B missing    forums.oracle.com

type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: org.hibernate.exception.GenericJDBCException: Cannot open connection org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) com.b2besoft.util.OpenSessionInViewFilter.doFilter(OpenSessionInViewFilter.java:34) com.b2besoft.business.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:121) root cause java.lang.RuntimeException: org.hibernate.exception.GenericJDBCException: Cannot open connection com.b2besoft.security.PrivilegeManager.GetPrivilegeDepthMask(PrivilegeManager.java:132) com.b2besoft.business.rfx.RfxManage.getOrderForBuyer(RfxManage.java:5586) com.b2besoft.business.rfx.RfxManage.getOrderForBuyerList(RfxManage.java:823) com.b2besoft.web.action.ProcessrfxbuyerAction.execute(ProcessrfxbuyerAction.java:135) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) com.b2besoft.util.OpenSessionInViewFilter.doFilter(OpenSessionInViewFilter.java:34) com.b2besoft.business.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:121) root cause org.hibernate.exception.GenericJDBCException: Cannot open connection org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103) org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91) ...

59. Transfer multiple files from client to server    forums.oracle.com

HI friend, I wil tel u clearly about my problem.Actually my task is to transfer multiple files from client to server.Im using socket for this task...... In client side, i wil mention the path of file....With the help of bufferedInputStream and BufferedOutputStream, im reading the contents and writing to that to server...... I want to know how to transfer multiple files ...

61. File transfer via socket    forums.oracle.com

62. How to transfer files rom one server to another    forums.oracle.com

I am extremely sorry to frame the question incorrectly. I meant programmtically. If I have to write a java program to connect to a server and transfer the files to another server what should I use ? Is there any way i can connect and do the same without using ftp ? Thanks

63. How to transfer a file from client to some other server ?    forums.oracle.com

Hi, I have a requirement to upload a file on client client and read it and transfer the same file to some other server. Description : User upload a file in jsp from client machine and read this file on my server now how can I transfer this file to some other server ? Thanks

64. Java socket file transfer problem    forums.oracle.com

On the server: shift the line: System.out.println("#" + len); up a couple of lines... after the while read but before the write to client. OR: Using an IDE? Got debugger? Know how to use it? Question is: Where's it blocking, on read from file (not likely) or on write to server (much more likely). When we know the problem is we ...

66. transfer files over network two methods.    forums.oracle.com

I'm trying to create a java application which can do this, but I believe there is two methods: 1) I would have to map the drive to the client and then be able to copy the files. 2) I can just create a connection which is open and then copy the files over

68. giv some sample code for transfer files from client to server    forums.oracle.com

Please have the courtesy to type out your question in full, readable english. And I would suggest showing what code you have tried so far and then we can give you some pointers. Just asking for the code to be spoon fed to you is a sure fire way of getting nowhere fast.

69. How to transfer files from client to server???????    forums.oracle.com

HI, I did my application in eclipse and i build it with the help of maven... Which gives some jar files for my application, now i need to transfer that jar files to Server......Which need some java program on client side and server side...... Which is the best mechanism to transfer files from client to server......... Please respond soon...... Thanks in ...

70. File not found after socket transfer    forums.oracle.com

"A file or directory in the path name does not exist." Seems pretty clear to me. What don't you understand about it? Do you understand about relative versus absolute paths? Do you know that you have to create a directory before you can use it? Did you look on your server to see whether that directory exists?

71. File Transfer using Socket    forums.oracle.com

Hello all, I'm trying to send a file through socket programing by converting it to an Object and then again converting it to File at the other end. I'm facing some issues. I'll post my code soon. Right now i dont have it here with me. But i wanted to know whether is it possible this way or is there some ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.