Forums Register Login

java mail API uses streaming

+Pie Number of slices to send: Send
does java mail API uses streaming? where can i get the source code to confirm this.
also i am tryign to send the mail using raw and non-raw mode.
in raw mode i can pass an input Stream to MimeMessage constructor:


In Non-raw mode, i have to do the following
Since there can be any mime type, so i have to use DataHandler and DataSource. Since the DataSource interface contracts says of providing the fresh inputStream everytime we invoke getInputStream(), we need to keep the data in the byte[] which will throw OOM for large size or documents Is there a way to avoid this?

Eliminate 95% of the weeds in your lawn by mowing 3 inches or higher. Then plant tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 836 times.
Similar Threads
Forcing MimeMessage to fetch all content
Java & Outlook integration - how to go about it
Sending a PDF Attachment via EMail
What should be the value of 'host' when I send an e-mail?
from my screen i wanted to send mail and from screen one report will generate that i wanted to send
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:53:46.