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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...