public static string SaveColorProfile(ColorProfile profile, FileCache.FileCache cache) { using (var stream = new MemoryStream()) { profile.Save(stream); stream.Position = 0; return(cache.AddFile("tmp", stream)); } }
public static string SaveColorProfile(ColorProfile profile, FileCache.FileCache cache) { using (var stream = new MemoryStream()) { profile.Save(stream); stream.Position = 0; return(cache.AddFile("tmp", stream)); } }