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?
// data represent zip file as byte array
// and callMethod is web service method
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).
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” (Mosher's Law of Software Engineering)
“If debugging is the process of removing bugs, then programming must be the process of putting them in.” (Edsger Dijkstra)
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);