Image imgwd = this.imageList1.Images["wd.png"]; var bytes = ImageToBytes(imgwd); public byte[] ImageToBytes(Image image) { using (MemoryStream ms = new MemoryStream()) { image.Save(ms, ImageFormat.Png); byte[] buffer = new byte[ms.Length]; ms.Se
今天我们讨论一下Java的byte数组.byte数组就是字节数组,每一位存一个字节.看下面程序,猜猜输出多少? package com.wjy.bytes; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; public class ByteArrayTest { public static void main