Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Transfer big files as byte array over network  RSS feed

 
Nikola Stefanovic
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm implement web service in java. Client will send one big zip file as byte array. What is maximum size for that file? What is best way to solve transfer big files? What is consequences if I just put that byte array in service method?

For example:

// data represent zip file as byte array
// and callMethod is web service method

callMethod(byte[] data)
 
john price
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't believe there is a maximum size for file transferring. It is a network. As long as there are no data rates (unlimited bandwidth), you are only limited by maximum data transfer rate (EG. 150 MB/s, 300 MB/s etc) of your internet provider.

I don't know the "problem" with large data transfers (only have done small ones), but I don't think there should be too many issues, although you should listen to people who disagree with me. I don't have much experience with large data transfers as stated above, so people with experience obviously outrank me. I am speaking in a theoretical matter for this question.

I'm assuming your service method is your connection method or transfer method. I think it will be fine (aka yes).

John Price
 
Rufat Babakishiyev
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the transfer I do not know exactly, but in database you can insert the BLOB(binary large object) datatype , maximum 4 gigabytes.
For example my method split mp3 file and insert it to ORACLE database , insertResource(byte [] mp3);

Sorry for English.
 
Nikola Stefanovic
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, I don't use database. I need just decompress zip file on server side and copy to folders for later use.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!