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. ... |
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 ... |
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 ... |
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 ... |
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 ... |
Can you please provide answer to some of these?
Thanks
|
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 ... |
|
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 ... |
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 ...
|
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 ... |
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 ... |
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 ... |
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, ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
|
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 ... |
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 ... |
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. |
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 ... |
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 |
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 ... |
|
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 ? - ... |
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 ... |
|
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 ... |
|
|
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 ... |
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 ... |
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 ... |
|
|
|
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, ... |
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 ... |
|
|
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 ... |
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 ... |
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 |
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 ... |
|
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 ... |
|
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 ... |
|
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 ... |
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 ... |
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 ... |
|
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 ... |
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) ... |
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 ... |
|
|
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 |
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 |
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 ... |
|
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 |
|
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. |
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 ... |
"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? |
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 ... |