I have the following function:
Code:
private string GetLogoPath(string mediaid)
{
string returnpath = "";
//do the logic for return path
Int32 theID = 0;
theID = Int32.Parse(mediaid);
XPathNodeIterator theNode = umbraco.library.GetMedia(theID, false);
returnpath = theNode.Current.Value;
return returnpath;
}
It does return a path but unfortunately the path is abit weird, it seems to attach some other number values to it, can anyone please advise how to get it to return the correct value??
WARNING: Might ask stupid question or give stupid answer