Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How to insert image in Media from C# code ?
Br , Vlad .
something like this
public static string GetMedia(int mediaId)
{
if (mediaId == 0) return "";
Media m = new Media(mediaId);
try
return m.getProperty("umbracoFile").Value.ToString();
}
catch (Exception ex)
LogHelper.Exception(ex);
return "";
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Insert image in Media
How to insert image in Media from C# code ?
Br , Vlad .
something like this
public static string GetMedia(int mediaId)
{
if (mediaId == 0) return "";
Media m = new Media(mediaId);
try
{
return m.getProperty("umbracoFile").Value.ToString();
}
catch (Exception ex)
{
LogHelper.Exception(ex);
return "";
}
}
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.