Documentation > Services API > Helper > GetBinaryAsText(Asset)

GetBinaryAsText

It reads the binary file provided and returns as in a string. Only supports xml, csv, txt files. Any other types of extension will return empty string.

public System.String GetBinaryAsText(Asset)

Parameters

NameDescriptionType
binaryAsset CrownPeak.CMSAPI.Asset

Connect with Crownpeak