How to store ZIP & JAR files.

I am succeeded in storing & then sending big files as an attachment except for ZIP & JAR files.Can anyone guide me what's the problem with ZIP & JAR files
[181 byte] By [sachin_ch] at [2007-9-26 1:18:50]
# 1

Hi sachin !!

I m facing problem in big size attachments ..

it always give me exception

javax.mail.SendFailedException: Sending failed;

nested exception is:

javax.mail.MessagingException: 552 Message size exceeds fixed maximum message size

at javax.mail.Transport.send0(Transport.java:218)

at javax.mail.Transport.send(Transport.java:80)

at MailTest.postMail(MailTest.java:82)

at MailTest.main(MailTest.java:19)

Can u tell me how to set the size for large attachments ?

File size upto 1 mb work fine , but file with 2mb size gives me problem ..

Plz reply me Fast , waiting :)

thanx

Regards

Khurram

khurramSheikh at 2007-6-29 0:50:26 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
That message may mean that your server is programmed to refuse to send messages larger than a certain size. To find this out, ask the person in charge of the server. And if it is so, no amount of programming you do can do anything about it.
DrClap at 2007-6-29 0:50:26 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...