C# 保存文件到数据库字段 attach new BusAttach ; FileInfo fi new FileInfo txtAttach Text Trim ; attach Fix fi Extension Substring 1 ToLower Trim ; FileStream fs fi OpenRead ; byte[] bytes new byte[fs Length]; fs Read bytes 0 Convert ToInt32 fs Length ; fs Close
namespace MyNewsReader.Models { class ProfileManager { //private Hashtable rsses = new Hashtable(); public Profile Profile = new Profile(); public ProfileManager() { //Init(); } public void ChannelReset() { Profile.Feeds.Clear();