wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Sending 1GB files over the network Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Sending 1GB files over the network" Watch "Sending 1GB files over the network" New topic
Author

Sending 1GB files over the network

J Mangual
Greenhorn

Joined: Nov 15, 2008
Posts: 16
Is there a limit to the size of files you can copy using java.io.* ? How about over a socket connection, can you copy files the same way. First you have to read the file then you have to send over the network, then you have to copy the data to a file. There seems like a lot of room for error. My friend says I should be able to send files as large as 1GB over a socket connection, is he right?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

There's no reason to think that there would be a limit to the size of files that you can send over the network.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

You can copy large files over a private network, or download them from the Internet, so why would Java put limitations on that?
The only limiting factor will be the hard disk space and the maximum file size within the file system. With NTFS the latter should also not be a real limiting factor.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sending 1GB files over the network
 
Similar Threads
copying files over a network
Send a file across the network
Upload-Applet
transferring files using sockets
What is socket programming?