以最简单的形式,这就是您将如何获取原始字节的方法,如果不知道您想要的内容,将无法显示更多内容……
private byte[] GetMp3Bytes(string connString){ SqlConnection conn = null; SqlCommand cmd = null; SqlDataReader reader = null; using (conn = new SqlConnection(connString)) { conn.Open(); using (cmd = new SqlCommand("SELECt TOP 1 Mp3_File FROM MP3_Table", conn)) using (reader = cmd.ExecuteReader()) { reader.Read(); return reader["Mp3_File"] as byte[]; } }}


