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
Im writing a web service (ws) to 'talk' with an umbraco installation. This ws its fired when an image is uploaded to our CDN, then using the MediaService a new media item is created based on the new imege, after this i need to update the DAMP property of a Node - already created - in order to link this property with the new Media Item created. There is any method on DAMP api for generate the xml stored on the DAMP property, using as parameter an specific Media Item?
Thanks in advance!!!
This topic might help: http://our.umbraco.org/projects/backoffice-extensions/digibiz-advanced-media-picker/digibiz-advanced-media-picker/23406-Add-image-to-DAMP-datatype-using-API.
In Installer.ascx.cs I also create media items and than set them on properties (from comment "//Save the media items in the node."). That's probably what you're looking for.
Hi Jeroen thanks for your quick reply!
I have read those posts but that approach are useful if you are running under umbraco context (access to DB)
Taking a look to the source code of DAMP, i found the methods that instaler.ascx.cs use to build the XML:
public static XDocument GetXML(string ids) and inside this method -> public static XElement GetMediaElements(string id) but this last one make a connection to the umbraco DB, because I’m on a Web Service disconnected from my umbraco i can't do queries to the DB.
At this moment I’m building a new GetMediaElements, that’s loads an XElement form a mediaCarrier (a serializable object used in the web service api to handle Media Items). If i can get this method works, i will post the code.
Me again, my new method can't be done, since the mediaCarrier dosen't have all the data needed to build the xml, so the only choice left is to build another webmethod or web service inside umbraco to serve this especific data.
I'll let you know how it goes!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted