this.daQuerry.SelectCommand = sqlCommand1;
System.Data.DataTable tMaterial=new System.Data.DataTable();
this.daQuerry.Fill(tMaterial);
return tMaterial;
}
public string audioStreamCreate(string filePath)
{
try
{
if (this.fStream != null)
{
this.fStream.Close();
}
this.fStream = new FileStream(filePath, FileMode.Open);
}
catch (Exception ex)
{
return ex.Message;
}
return "ok";
}
public byte[] audioStreamTran()
{
byte[] audiobyte = new byte[this.onceReadCount+4];
int readCount = 0;
byte countByte1, countByte2;
try
{
readCount = this.fStream.Read(audiobyte, 4, onceReadCount);
}
catch
{
audiobyte[0]=0;
return audiobyte;
}
|