diff --git a/COMCMS.Common/ByteConvertHelper.cs b/COMCMS.Common/ByteConvertHelper.cs
new file mode 100644
index 0000000..9f37336
--- /dev/null
+++ b/COMCMS.Common/ByteConvertHelper.cs
@@ -0,0 +1,47 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using Newtonsoft.Json;
+
+namespace COMCMS.Common
+{
+ ///
+ ///
+ ///
+ public class ByteConvertHelper
+ {
+ ///
+ /// 将对象转换为byte数组
+ ///
+ /// 被转换对象
+ /// 转换后byte数组
+ public static byte[] Object2Bytes(object obj)
+ {
+ string json = JsonConvert.SerializeObject(obj);
+ byte[] serializedResult = Encoding.UTF8.GetBytes(json);
+ return serializedResult;
+ }
+
+ ///
+ /// 将byte数组转换成对象
+ ///
+ /// 被转换byte数组
+ /// 转换完成后的对象
+ public static object Bytes2Object(byte[] buff)
+ {
+ string json = Encoding.UTF8.GetString(buff);
+ return JsonConvert.DeserializeObject