<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Jivespace: Message List - Adding Image to a Blog post using webservice</title>
    <link>http://www.jivesoftware.com/jivespace/community/support?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Mon, 08 Sep 2008 15:15:34 GMT</pubDate>
    <generator>Jive SBS 3.0.8 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2008-09-08T15:15:34Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Adding Image to a Blog post using webservice</title>
      <link>http://www.jivesoftware.com/jivespace/message/120814?tstart=0#120814</link>
      <description>&lt;!-- [DocumentBodyStart:94c4f75d-565f-4f2d-9840-36898f474550] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I don't think that you can retrieve the wiki formatted content of a blog but you should be able to send in wiki text directly. If you can convert your HTML to wiki text automatically you should be able to embed images just fine using the wiki syntax. Thanks.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-Todd&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:94c4f75d-565f-4f2d-9840-36898f474550] --&gt;</description>
      <pubDate>Mon, 08 Sep 2008 15:15:33 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/120814?tstart=0#120814</guid>
      <dc:date>2008-09-08T15:15:33Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Adding Image to a Blog post using webservice</title>
      <link>http://www.jivesoftware.com/jivespace/message/120710?tstart=0#120710</link>
      <description>&lt;!-- [DocumentBodyStart:39eb0f62-d3e3-4f22-ba74-d62f6d3005fd] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Is it possible to get the wiki formatted content of a blog published using webservice APIs? Or can we convert out HTML data to wiki format and then replace the image links using wiki syntax?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:39eb0f62-d3e3-4f22-ba74-d62f6d3005fd] --&gt;</description>
      <pubDate>Sat, 06 Sep 2008 07:47:22 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/120710?tstart=0#120710</guid>
      <dc:date>2008-09-06T07:47:22Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Adding Image to a Blog post using webservice</title>
      <link>http://www.jivesoftware.com/jivespace/message/118901?tstart=0#118901</link>
      <description>&lt;!-- [DocumentBodyStart:67da9b5b-7a16-4060-a64d-595beb95551d] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hi Santhosh,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Unfortunately, after some extensive testing it appears that this kind of functionality is not possible. Even when done from the front-end it doesn't seem to be possible to have the HTML macro mixed with the wiki syntax at all. I believe that this is somewhat different in 2.5 because wiki markup has basically been eliminated and we've moved to an HTML only implementation. You might be able to achieve this functionality in 2.5 but I am not sure about 2.0.x.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you have any further questions please let me know. Thanks.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-Todd&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:67da9b5b-7a16-4060-a64d-595beb95551d] --&gt;</description>
      <pubDate>Fri, 29 Aug 2008 16:36:38 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/118901?tstart=0#118901</guid>
      <dc:date>2008-08-29T16:36:38Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Adding Image to a Blog post using webservice</title>
      <link>http://www.jivesoftware.com/jivespace/message/118827?tstart=0#118827</link>
      <description>&lt;!-- [DocumentBodyStart:5b04b018-d1e1-4141-9245-da1fbd3b46f4] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;I am using clearspace 2.0. What is the difference in this feature in 2.5 version?&lt;/p&gt;&lt;p&gt;I tried your solution in using web UI&amp;nbsp; and it is working. But wont it fail when we close the html tag tree structure in betwee using {code} (ie. without closing all tags that were opened) ?&lt;/p&gt;&lt;p&gt;But when I tried the same using webservice APIs it is failing.&lt;/p&gt;&lt;p&gt;when I say the content of the blogpost as&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;{code:html}html content goes here{code} !image1.jpg|alt=image1.jpg!&lt;/strong&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;But the when we see the result in webpage it is correct html and &lt;strong&gt;!image1.jpg|alt=image1.jpg! &lt;/strong&gt;is coming as such in body of the blog&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:5b04b018-d1e1-4141-9245-da1fbd3b46f4] --&gt;</description>
      <pubDate>Fri, 29 Aug 2008 06:10:30 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/118827?tstart=0#118827</guid>
      <dc:date>2008-08-29T06:10:30Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Adding Image to a Blog post using webservice</title>
      <link>http://www.jivesoftware.com/jivespace/message/118280?tstart=0#118280</link>
      <description>&lt;!-- [DocumentBodyStart:118e805d-b530-45f0-b208-792043b7a00b] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hi Santhosh,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Since you are using the {code:html} macro you will not be able to use the src attribute of the img tag. All "src" tags are stripped out of posts automatically to avoid any possible XSS (Cross Site Scripting) attacks. The only way for you to use images in your post via web services is to close your {code} macro when you are going to insert an image, use the !myFileName.jpg|alt=MyFileName.jpg! markup and then start a new {code:html} macro again.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Of course, this is all assuming that you are running Clearspace 2.0.x and not Clearspace 2.5. If you have any further questions please let me know. Thanks.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-Todd&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:118e805d-b530-45f0-b208-792043b7a00b] --&gt;</description>
      <pubDate>Wed, 27 Aug 2008 15:26:58 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/118280?tstart=0#118280</guid>
      <dc:date>2008-08-27T15:26:58Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Adding Image to a Blog post using webservice</title>
      <link>http://www.jivesoftware.com/jivespace/message/118230?tstart=0#118230</link>
      <description>&lt;!-- [DocumentBodyStart:4c61b09c-8311-4dc1-b4d1-36b7f890fb60] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;My blog body is in html format and I adding {code:html} at the beginning of the data before passing to the API.&lt;/p&gt;&lt;p&gt;But how can I use wiki format !myFileName.jpg|alt=MyFileName.jpg! in html? In html we need to give the img tag with src attribute, right? Please correct me if I am wrong.&lt;p class="MsoPlainText" style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="MsoPlainText"&gt;Thanks&lt;/p&gt;&lt;p class="MsoPlainText"&gt;Santhosh&lt;/p&gt;&lt;p class="MsoPlainText" style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:4c61b09c-8311-4dc1-b4d1-36b7f890fb60] --&gt;</description>
      <pubDate>Wed, 27 Aug 2008 10:39:43 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/118230?tstart=0#118230</guid>
      <dc:date>2008-08-27T10:39:43Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Adding Image to a Blog post using webservice</title>
      <link>http://www.jivesoftware.com/jivespace/message/118121?tstart=0#118121</link>
      <description>&lt;!-- [DocumentBodyStart:882258b7-e4f1-4956-a3d7-e43f2f5ed2bf] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The addImageToBlogPost webservices call will take a image file stream that you give it and automatically upload it to your Clearspace instance and associate it with the specified blog post. When you are viewing this blog post you will be able to access this image by clicking on the Image button in the Rich Text Editor. Your new image will show up in the list of Uploaded images.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you want to retrieve the name of this image via webservices you will want to use the getImagesByBlogPostID method:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="http://www.jivesoftware.com/builds/docs/clearspace/latest/RestServicesReference.html#BlogService_getImagesByBlogPostID_long" target="_blank"&gt;http://www.jivesoftware.com/builds/docs/clearspace/latest/RestServicesReference.html#BlogService_getImagesByBlogPostID_long&lt;/a&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This will an array of images associated with this blog post. Once you have the filename of the image that you want you can add it to your post by using this syntax:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;!myFileName.jpg|alt=MyFileName.jpg!&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-Todd&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:882258b7-e4f1-4956-a3d7-e43f2f5ed2bf] --&gt;</description>
      <pubDate>Tue, 26 Aug 2008 22:03:46 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/118121?tstart=0#118121</guid>
      <dc:date>2008-08-26T22:03:46Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Adding Image to a Blog post using webservice</title>
      <link>http://www.jivesoftware.com/jivespace/message/117874?tstart=0#117874</link>
      <description>&lt;!-- [DocumentBodyStart:11fde60c-a381-4d4d-9483-9cbdaedde529] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;I am migrating a set og wordpress blogs to clearspace community 2.4.0. While recreating those blogs in clearspace(Using webservice APIs) I want to add the images in the blogpost body also. After adding that image to the blogpost, I want to update the src attribute of the img html tag too.&lt;/p&gt;&lt;p&gt;But how will I get the link of an image&amp;nbsp; after adding it to blogpost?&lt;/p&gt;&lt;pre&gt;void &lt;strong&gt;addImageToBlogPost&lt;/strong&gt;(long blogPostID,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; java.lang.String name,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; java.lang.String contentType,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; byte[] source)
&lt;/pre&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This method returns void. Could you please also explain the APi usage for creating a blogpost with image inside?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:11fde60c-a381-4d4d-9483-9cbdaedde529] --&gt;</description>
      <pubDate>Tue, 26 Aug 2008 05:21:48 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/117874?tstart=0#117874</guid>
      <dc:date>2008-08-26T05:21:48Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

