您如何从 Firebird 中检索代码?如果您正在获取数据并将其转换为 byte[] 尝试:
byte [] blob = row["image"];
// create a file FileStream to write the data
FileStream fs = new FileStream("image.jpg", FileMode.Create);
fs.Write(blob,0,blob.Length);
fs.Close();
上面的代码应该可以解决问题。
PS:我在代码中做了很多假设,但你可以理解。