public void insertTimelineItem ( TimelineItem item , String attachmentContentType , byte [ ] attachmentData ) throws IOException { Mirror . Timeline timeline = getMirror ( ) . timeline ( ) ; timeline . insert ( item , new ByteArrayContent ( attachmentContentType , attachmentData ) ) . execute ( ) ; }
Inserts an item with an attachment provided as a byte array .