More in this section

Forums / Developing with Sitefinity / Accessing Images Stored in CMS

Accessing Images Stored in CMS

2 posts, 0 answered
  1. Armysniper
    Armysniper avatar
    126 posts
    Registered:
    03 Mar 2005
    07 Sep 2009
    Link to this post
    I am trying to send emails from my site for different actions. The emails are in HTML so I would love be able to access images stored in the CMS in these emails. How can I find out the image URL?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    07 Sep 2009
    Link to this post
    Hello Armysniper,

    You can use StreamReader class to read the html, but you need to have some logic or certain place where you store your images so that you can narrow from where some url and image comes from. The StreamReader does not know whether an image is stored in your cms or whether it comes from somwhere else since it will be represented as url.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered