真不是老铁们对国产没信心,这啥设计,传个图先GZ压缩,再转Base64串,总共一个小图能审多少大小。还不能设置不压缩。丝毫不考虑别人连接的便捷性。先骂一句LG
仪器的传输Base64串
H4sIAAAAAAAA/+3csY4cx5nA8bETA7zMoIDLRDgypOQiKSdjg+kFis/WJZfyDfQKSvwEfAll58iJEx8EX0DgAAOGAcHA4cK65rY4as7szHbNVHdVffX7YbUwd5e7vcXt7++pnu2Xv/nX//jF4b0vpv9+Pf33Lz8/HH71s8PhZ4d/fnj7r6b3//KfDg//fZAAAAAAAAAAAAAAABjMmzdvPvvss+n1+g++5PyTvH37dnr769evNzhwAEL56quvDofD9Hr9Bz9//nxlj7799tvp46d3bXDgAIRyQ49WfnDSIwBW0yNgB9M0OB8d0xtfvXr1+eefT6+/++675bumP04fv3zj/JYTJ3+LrukRsIN5eizfMs+HKUbTu6bXz549e/v27cl7p9cnbzmx/AB6p0fADs579Mknn0wZOv7x8wfHP17qkQAFNv+QTMk4fyB8/u+uR8Aa53trU2vm6TEPlumh0PTHb7755vhXpv89veW4/6ZHA5oTc8nz58+Xj6D1CFhjzs38CGg2/e95d25+Iu70elmf9JCwZaH0aEBzYl6+fPntwvQj8fr162fPnk3vml4ff2b0CFhpmiEvXrw4/vFkv+58+26yHC96NKArifn+++/nJB1/oVWPgJWmATI9JjqZHsf36hHnrifmeHVpzQef0yMY2bIgesSTridmvsKoR8BtpnExPUqaHiudBGieLcvL0/P1o/nq0vzkh5MndetReNcT8/Lly/nq0poPPqdHwIsXL169enXSo2V9ZstCTa+//vrr6Y/T62mMTDlLejSAK4mZfx6WPwB6BOSan2s3P+RZvn16y/IJD/Nz8I5/tF83oEu3SD0+Ul7enfvJHp3cAPzTTz+dn6F38sl3+c6AVhx/r2T5xqlT03A43p/h5NeR5gdQ0/8rPr5Fj8K78vtHX3zxxck//ZM9uv7bTEfbf1tAW6aynI+OKTrz/eu+/PLL89BM75ofWM1VOr+jHQDs482bN1ODlk97AAAAAAAAAACA3fweoHO15yhl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o0chgAQejRfcegRwBldLhflxoIgRhRQRtnH2yl5x4N/Wu5DKiNsw+2okc3f/V3795VOoDOvFuofSx9a+Psg610eP1oVqtHP8bI3QbWc38GYA09uunr6lEGPQLW6HO/LlXasvsoRqbrSnpUSjNnH2xCj/K/oh7l0aNSmjn7YBPd9ijV6pHpmsuKldLS2QfldXv9KO37EOmnB0f/vbDLl+6eFQPW0KP2vhbAiHrer0t7NcLdgWhCY2cfFKZHq79KO981g2rs7IPCQvRo0+MRI1rR2NkHhfV8/ShtHws7dQA76bxHaa8eAbCtzvfr0pbJ8OCItrR39kFJepT7mX9Y2OCLBmTFSmnv7IOS+u9R2qZHFzPnbgO5rFgpTZ59UEz/14/SBj26tlNnuuayYsAagXpUMEnXPqHpmsuKAWsE2q8rdVRPfDbTNZcVK6XJsw+KCdGjVK5HTz+nznTNZcVKafXsgzJi9ej+A3v68/x94e4vNwQrVkqrZx+UEeL6USrUI79wBFBNlB6loj0CYG9R9uvS3TURI1rX8NkHBUTs0Q2HZ6eODjR89kEBgXqUbsrKQYzoRdtnH9wr0PWjWVZcxAigFeF6lFYnRowAGhJrv+7oydbcHiO/TZPLipXSydkHNwrao3S1OHc9LHK3gVxWrJR+zj64RdwepQtJunePznTNZcVK6ersg2wRrx8tHS6/3Mh0zWXFgDWi9yiVjVEyXfNZMWCN3BJ1u2NQ7Kl0pmsuK1ZKt2cfbKLnM6LM87p/eHD/5xmHFSul57MPynNGQC3OPgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoBeHw/8D1FoualhvBwA=
先把Base64串处理成.gz文件,再对gz文件解压得到图片文件
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
Image img=DecompressToImage("H4sIAAAAAAAA/+3csY4cx5nA8bETA7zMoIDLRDgypOQiKSdjg+kFis/WJZfyDfQKSvwEfAll58iJEx8EX0DgAAOGAcHA4cK65rY4as7szHbNVHdVffX7YbUwd5e7vcXt7++pnu2Xv/nX//jF4b0vpv9+Pf33Lz8/HH71s8PhZ4d/fnj7r6b3//KfDg//fZAAAAAAAAAAAAAAABjMmzdvPvvss+n1+g++5PyTvH37dnr769evNzhwAEL56quvDofD9Hr9Bz9//nxlj7799tvp46d3bXDgAIRyQ49WfnDSIwBW0yNgB9M0OB8d0xtfvXr1+eefT6+/++675bumP04fv3zj/JYTJ3+LrukRsIN5eizfMs+HKUbTu6bXz549e/v27cl7p9cnbzmx/AB6p0fADs579Mknn0wZOv7x8wfHP17qkQAFNv+QTMk4fyB8/u+uR8Aa53trU2vm6TEPlumh0PTHb7755vhXpv89veW4/6ZHA5oTc8nz58+Xj6D1CFhjzs38CGg2/e95d25+Iu70elmf9JCwZaH0aEBzYl6+fPntwvQj8fr162fPnk3vml4ff2b0CFhpmiEvXrw4/vFkv+58+26yHC96NKArifn+++/nJB1/oVWPgJWmATI9JjqZHsf36hHnrifmeHVpzQef0yMY2bIgesSTridmvsKoR8BtpnExPUqaHiudBGieLcvL0/P1o/nq0vzkh5MndetReNcT8/Lly/nq0poPPqdHwIsXL169enXSo2V9ZstCTa+//vrr6Y/T62mMTDlLejSAK4mZfx6WPwB6BOSan2s3P+RZvn16y/IJD/Nz8I5/tF83oEu3SD0+Ul7enfvJHp3cAPzTTz+dn6F38sl3+c6AVhx/r2T5xqlT03A43p/h5NeR5gdQ0/8rPr5Fj8K78vtHX3zxxck//ZM9uv7bTEfbf1tAW6aynI+OKTrz/eu+/PLL89BM75ofWM1VOr+jHQDs482bN1ODlk97AAAAAAAAAACA3fweoHO15yhl1P45ArhX7TlKGbV/jgDuVXuOUk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QRtnH2yl5x4N/Wu5DKiNsw+2okc3f/V3795VOoDOvFuofSx9a+Psg610eP1oVqtHP8bI3QbWc38GYA09uunr6lEGPQLW6HO/LlXasvsoRqbrSnpUSjNnH2xCj/K/oh7l0aNSmjn7YBPd9ijV6pHpmsuKldLS2QfldXv9KO37EOmnB0f/vbDLl+6eFQPW0KP2vhbAiHrer0t7NcLdgWhCY2cfFKZHq79KO981g2rs7IPCQvRo0+MRI1rR2NkHhfV8/ShtHws7dQA76bxHaa8eAbCtzvfr0pbJ8OCItrR39kFJepT7mX9Y2OCLBmTFSmnv7IOS+u9R2qZHFzPnbgO5rFgpTZ59UEz/14/SBj26tlNnuuayYsAagXpUMEnXPqHpmsuKAWsE2q8rdVRPfDbTNZcVK6XJsw+KCdGjVK5HTz+nznTNZcVKafXsgzJi9ej+A3v68/x94e4vNwQrVkqrZx+UEeL6USrUI79wBFBNlB6loj0CYG9R9uvS3TURI1rX8NkHBUTs0Q2HZ6eODjR89kEBgXqUbsrKQYzoRdtnH9wr0PWjWVZcxAigFeF6lFYnRowAGhJrv+7oydbcHiO/TZPLipXSydkHNwrao3S1OHc9LHK3gVxWrJR+zj64RdwepQtJunePznTNZcVK6ersg2wRrx8tHS6/3Mh0zWXFgDWi9yiVjVEyXfNZMWCN3BJ1u2NQ7Kl0pmsuK1ZKt2cfbKLnM6LM87p/eHD/5xmHFSul57MPynNGQC3OPgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoBeHw/8D1FoualhvBwA=");
img.Save("D:\\tt.jpg");
}
/// <summary>
/// 解压GZ得到图片
/// </summary>
/// <param name="charStream">Base64串</param>
public static Image DecompressToImage(string charStream)
{
byte[] arr = Convert.FromBase64String(charStream);
MemoryStream memoStream = new MemoryStream(arr);
Stream imageStream = new MemoryStream();
Image retImage = null;
using (GZipStream decompressionStream = new GZipStream(memoStream, CompressionMode.Decompress))
{
decompressionStream.CopyTo(imageStream);
retImage = Image.FromStream(imageStream);
}
return retImage;
}
}
}
最终就是这么个东东