public Comment addCommentWithAttachment ( long sheetId , long discussionId , Comment comment , File file , String contentType ) throws SmartsheetException , IOException { String path = "sheets/" + sheetId + "/discussions/" + discussionId + "/comments" ; Util . throwIfNull ( sheetId , comment , file , contentType ) ; return this . addCommentWithAttachment ( path , comment , new FileInputStream ( file ) , contentType , file . getName ( ) ) ; }
Add a comment to a discussion with an attachment .