question: public MediaConfig createChannelImageAttachment ( String file , MediaConfig config ) { config . addCredentials ( this ) ; String xml = POSTIMAGE ( this . url + "/create-channel-attachment" , file , config . name , config . toXML ( ) ) ; Element root = parse ( xml ) ; if ( root == null ) { return null ; } try { MediaConfig media = new MediaConfig ( ) ; media . parseXML ( root ) ; return media ; } catch ( Exception exception ) { this . exception = SDKException . parseFailure ( exception ) ; throw this . exception ; } }
target:  Create a new file/image/media attachment for a chat channel.