Write new image using smartservice plugin and get the newly created content id

Hi there,

I am trying to write new images to Appian knowledge center from my smart service plugin java code and wondering how to write a new image using java File new file ("abc.png") operations and then return the file path immedialtely after i create the image .

// I see the following code in few posts but not sure what would be the documentId below ??

String filePath = cs.getInternalFilename(cos.getVersion(documentId,ContentConstants.VERSION_CURRENT))

File jAppianFile = new File(filePath);

 Discussion posts and replies are publicly visible