问题描述
selectfjnrfromsurver_fcfh_fjfjnr是longraw类型的DataTabledt_1=newDataTable();OracleCommandcmd_1=newOracleCommand(sql_1,conn);OracleDataAdapteradapter_1=newOracleDataAdapter(cmd_1);adapter_1.Fill(dt_1);foreach(DataRowrowindt_1.Rows){Byte[]fileByte_1=null;stringfilename_1="";if(row["fjnr"]!=System.DBNull.Value){fileByte_1=(byte[])(row["fjnr"]);取得的fileByte_1的值是空的有遇到过的吗?
解决方案
解决方案二:
up!!!!!
解决方案三:
数组不能强转的,请用Array.ConvertAll
时间: 2025-01-25 09:51:25