Limitation on web service

I am proposing a (REST) web service for a client who will be sending data as an attachment. The service consumer will be sending two files as an attachedment to the web service. I want to know if thier is any limitation on file size that will be attached to the service call. If there is a size limit then up to what size it is ok to use webService. For example,

1. Is it ok for web service consumer to send  data as a file attachment upto 1 MB, 2 MB, 3 MB ..... 10 MB; what is the limit for a webService for optimal utilization.

Thank you
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
The size limitation will depend on your web server and your programming language.  There is no generic answer to your question, you have to find out what your limits are.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
javaCaravan0Author Commented:
web server is going to be APACHE and the programming language is JAVA.  Now, can you tell the size limitation.
Dave BaldwinFixer of ProblemsCommented:
No, I can't.  It will be defined by the setup and configuration of your specific system.  Nobody can tell how you set up your own system.

It looks like 'LimitRequestBody' is the parameter to set upload limits in Apache.

Here and here talk about file uploads with JAVA.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Services

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.