Stream fileDataStream = MyFile.PostedFile.InputStream;
int fileLength = MyFile.PostedFile.ContentLength;
byte[] fileData = new byte[fileLength];
fileDataStream.Read(fileData,0,fileLength);

myCommand.Parameters.Add(":filecontent",OleDbType.Binary,fileLength,"filecontent").Value = fileData;

相关文章:

  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2021-05-25
  • 2021-08-10
猜你喜欢
  • 2022-12-23
  • 2022-02-12
  • 2022-12-23
  • 2021-10-27
  • 2022-03-10
  • 2021-09-26
  • 2022-01-18
相关资源
相似解决方案