You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attaching a file, the content-type is inferred by MimeBodyPart by reading from the input stream. This occurs twice per attachment before the data is written out, resulting in 3 http calls. If the DataSource implements javax.mail.EncodingAware then this used if the result is non-null. When the file type is known, such as a pdf, this should avoid the extra hops. Unfortunately the given DataSource is decorated by NamedDataSource, so this optimization is not possible.
The text was updated successfully, but these errors were encountered:
When attaching a file, the content-type is inferred by
MimeBodyPart
by reading from the input stream. This occurs twice per attachment before the data is written out, resulting in 3 http calls. If theDataSource
implementsjavax.mail.EncodingAware
then this used if the result is non-null. When the file type is known, such as a pdf, this should avoid the extra hops. Unfortunately the givenDataSource
is decorated byNamedDataSource
, so this optimization is not possible.The text was updated successfully, but these errors were encountered: