public class AttachmentUtils
- extends java.lang.Object
All versions of attachments in confluence are stored under a folder labeled with the name with the name of the attachment.
The containing folder is the parent folder holding the versions of that attachment
`-- 1 (file)
`-- 2 (file)
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static java.io.InputStream getLatestAttachmentStream(Attachment attachment)
- Returns the attachment data as an InputStream
This method is not specific to any implementation of the AttachmentManager.
attachment - the attachment the data should be retrieved for
- the InputStream from the AttachmentManager
java.lang.IllegalStateException - if the AttachmentManager could not be retrieved from the application context
public static java.lang.String getConfluenceAttachmentDirectory()
Copyright © 2003-2014 Atlassian. All Rights Reserved.