Useful for loading content from any given byte array, without having to resort to a single-use {@link InputStreamResource}. Particularly useful for creating mail attachments from local content, where JavaMail needs to be able to read the stream multiple times. @author Juergen Hoeller @since 1.2.3 @see java.io.ByteArrayInputStream @see InputStreamResource @see org.springframework.mail.javamail.MimeMessageHelper#addAttachment(String,InputStreamSource)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|