private void SendBackBinaryData(int time) { try { IReView_Feed proxy = RPC_Manager.Instance.Get_Client_Proxy <RPC_Client_Proxy_IReView_Feed>(); if (proxy != null && BinaryStorage != null) { // Collect all data entries and create a package to send List <BinaryData> dataEntries = BinaryStorage.GetData(time); List <long> idList = new List <long>(); List <int> timeList = new List <int>(); List <byte[]> dataList = new List <byte[]>(); foreach (BinaryData data in dataEntries) { idList.Add(data.Id); timeList.Add(data.Time); dataList.Add(data.Data); } proxy.SendBackBinaryData(idList.ToArray(), timeList.ToArray(), dataList.ToArray()); } } catch (Exception e) { RPC_Manager.Instance.Close(); } }