I have created custom web part for news feed.I can post text content through the rest API ,but I need to post images and documents through the rest API. I followed msdn blog also.In msdn blog text content post is only there. Is there any way to achieve this?