GetStreamFromString() public static method

public static GetStreamFromString ( string textData ) : Stream
textData string
return Stream
Example #1
0
        private ApplicationCacheFile CreateApplicationCache(string appTypeName)
        {
            var cacheFile = new ApplicationCacheFile(GetAppCacheRoot());

            cacheFile.Name = appTypeName;
            cacheFile.Binary.SetStream(Tools.GetStreamFromString(BuildCacheData(appTypeName)));
            cacheFile.Save();
            cacheFile = Node.Load <ApplicationCacheFile>(cacheFile.Id);
            return(cacheFile);
        }