To read an uploaded asset you will need to use the following code:
Read an asset uploaded into the CMS
System.Text.Encoding.UTF8.GetString(Convert.FromBase64String(BinaryFile.LoadAsBase64(xmlAsset.Id.ToString())))
Read an asset attached to an asset
System.Text.Encoding.UTF8.GetString(Convert.FromBase64String(BinaryFile.LoadAsBase64(asset["attachedFileFieldName"])))
--
David GreenbergCustomer Support Engineer
## If I’ve helped, accept this response as a solution so that other’s can find is more quickly in the future.
## Have thoughts on Crownpeak products? We'd love to hear them. Speak with the Crownpeak Product Team..