所以我有一个picturebox,我想将它传递给openread(),但我得到的错误路径不能为null。我如何使这个工作?
Dim imageData() As Byte
Dim fileStream As FileStream = File.OpenRead(PictureBox1.ImageLocation)
imageData = New Byte((fileStream.Length) - 1) {}
fileStream.Read(imageData, 0, imageData.Length)
fileStream.Close()