• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Transfer big files as byte array over network

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
He got surgery to replace his foot with a pig. He said it was because of this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic