This is perhaps similar to previous posts, but I want to be specific about the use of locking on a network, rather than locally. I want to write a file to ... |
I have a problem that i illustrated in this question but had no correct answers. I refined my problem and tried to edit the initial question to reflect that but ... |
i am using clear-case source control, i created my vob repository(which has my java source code) on the network drive, when i rum my javac compiler on the source it compiles ... |
I'm implementing a Java-based system which needs accessing both the native and networked filesystems. Using the Java File class is easy and straight forward in the native case, and I'd like ... |
I'm am trying to upload a file into mainframe server using FTP. My code is below
FTPClient client = new FTPClient();
InputStream in = null;
FileInputStream fis = ...
|
I am trying to send a class file to offload "work" from a client to a server.
I send a class file "MyClass.class" and receive it as "MyFooClass.class" successfully.
I need to execute ... |
I'm working on this program that needs to download files from a network. The same file is downloaded many times, so we need to cache them to the local file system. ... |
|
I sent a File from one Socket to an other. After this I try to sent a simple message but this doesn't work. Can someone tell why?
Sent File and Message:
byte[] buffer ...
|
Is there a way to use a reflection over the network like "wwww.domain.com/codes/MyClass.Class"
We have got a server, where we save the code, and on the other server we run the program ... |
Hello, I've been asked to write a program with the following specs: -The server uploads a file to a specified client. -Save in a database how long it took for the file to get there. -Get the file back from the client -Save in the database how long it took for the file to go from client to server -Repeat the ... |
Hi there, I have this one recurring problem with a worker-thread on a client app that I use to upload files to a server app. The problem seems to only exist when dealing with compressed files ( *.zip ) and the like. After an upload of a compressed file, I go to the server and try to open it with a ... |
This may be a very basic question but I really have been struggling to get this right. I want to address a file over a network connection. For the moment i have given complete access to client and wanting to read a file on the server, but i keep getting fileNotFoundException. What should the filename look like in Java? servername\C:\hallo.txt I've ... |
hello, Thank you in advance... I'm trying to write a function that gets a file using java.net.URL I'm able to download ascii (.html) files with no problems (so far); but when i try to download a .jpg the file gets truncated. The actual file size is 52,177 bytes; but i only get 2,489 bytes. Here's the function: public void getFile(String pUrl) ... |
Hello, Its possyble to copy a file that are in a network location to my computer (C:\) If yes : Can someone give me a example in how to open a file that are in a network location, inside my network( For example : \\192.168.200.1\\Clients\\Luis.xls ). And how to move a file that are in a location to another ( For ... |
Hi I am writing a code to transfer a file from server machine to client machine. I am using Object protocol for communication. ie client sends a filerequest object , server recognizes it and send the response back in form of object again. My problem is : I read the file on server machine , in chunks of 1024 bytes. I ... |
|
Hi, Welcome to JavaRanch! To get a list of files on machine X, there has to be software on X which listens for requests for such information and responds to it. Windows File Sharing does this with the SMB protocol; UNIX machines traditionally used NFS, and Macs once used Apple's own file sharing protocol. Nowadays, there are SMB servers available for ... |
hi everyone i got a doubt when doing socket programming i don't know whether it will happen or not i.e., in network two systems r there, system A and system B now i wanna get a file frm system A to system B, could u guys plz tell me how can i get the file so tht i'm very greatfull. by ... |
|
I don't want to use Buffers in order to avoid overflows. Let me show you the receiver side. I have an InputStream coming from the socket, and a FileOutputStream that will write on the file. I want to do that writing with a channel, because it has a lot of space. However, there's no way for me to connect this channel ... |
thanks for replying... Its not the filepath i am interested in. Its the file with content. I need to pass multiple files over network using corba. Now this files will reach a java server where i have to process it and put it in appropriate place. Is passing the file content the only way of doing it? As there are many ... |
Hi, basically, I'd like to know if there's a way (other than using the skip() method), to retrieve only a specific portion of a file from a server. Someone mentioned to me that http has a protocol for doing this. Does anyone know what it is? Or where I can look to find it? And once I've got it, how to ... |
|
I am trying to create a File object from a file on a windows network, but the network share requires a different username and password from the machine that it is running on. Is there a way to pass the username and password when creating the File object to avoid the "Access is denied" error? Thanks for the help. If I ... |
Any ideas on if this will workout or not or should attempt to go another way. I read over the api for javax.media and read over the avtransmit2.java and didn't feel that was what i was needing to do. I am just needing to send the file from client to server and the File file type is serializable and will allow ... |
I am facing a problem while executing an exe file on network drive through a batch file on local drive using java. when i try to execute batch file directly from command prompt it execute the exe file but while executing batch file programatically the exe file is not executed. Please help me. Its urgent. Here is my code to call ... |
Hi, I am developing a program to transfer any type of file from system to system. I successfully did it for text(rtf,html,js...etc) files but its just not happening for exe files. Am not able to do it for exe/application/setup files For eg i transferred a goolgetalk setup file to another system. But on double clicking it, its not getting installed. I ... |
|