" " symbols were found while using contentManager.storeContent() API
Hi All,
I am using contentManager.storeContent() API to upload the "process template" contents to the server. But, when i use BC(beyond Compare) tool for spectification.txt to see the changes, i found some strange symbol in the text file like " " as below. Please let me know weather there is any mismatch attribute used in the below API or something i need to change. ------------------------------------------------------------------------------------------------------------------------------------- <property name="text" type="xsd:string"> </property> <property name="text" type="xsd:string"> </property> <property name="text" type="xsd:string"> </property> <property name="text" type="xsd:string"> </property> -------------------------------------------------------------------------------------------------------------------------------------- attachmentContent = this.teamRepo.contentManager().storeContent( attachmentType, attachmentType.startsWith("text") ? "UTF-8" : null, attachmentType.startsWith("text") ? LineDelimiter.LINE_DELIMITER_PLATFORM : LineDelimiter.LINE_DELIMITER_NONE, new FileInputStream(attachmentFile), null, taskMonitor); ------------------------------------------------------------------------------------------------------------------------------------------ |
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Dec 22 '15, 1:37 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I'd check what the encoding was when downloading the content.
Comments Hi Ralph,
I can't comment on that. I don't even know what you are achieving here. Maybe you use the wrong storeContent() method or your case is not really covered.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.