摘要:
1.将Image转换成byte[] 1 public byte[] ImageToByteArray(Image image) 2 { 3 MemoryStream imageStream = new MemoryStream(); 4 image.Save(imageStream, System. 阅读全文
摘要:
获取IP地址: 1 private static IPAddress GetIP() 2 { 3 IPHostEntry ipHost = Dns.GetHostEntry(Dns.GetHostName()); 4 IPAddress ipaddress = ipHost.AddressList. 阅读全文