不是将新路径保存在数据库中,而是把照片名称保存在数据库的,怎么实现?、、
System.IO.FileStream str = new System.IO.FileStream(@"C:\Documents and Settings\Administrator\桌面\_MG_8575.jpg", System.IO.FileMode.Open); byte[] BmpByte = new byte[(int)str.Length]; str.Read(BmpByte, 0, (int)str.Length);不是将新路径保存在数据库中,而是把照片名称保存在数据库的,怎么实现?、、
System.IO.FileStream str = new System.IO.FileStream(@"C:\Documents and Settings\Administrator\桌面\_MG_8575.jpg", System.IO.FileMode.Open); byte[] BmpByte = new byte[(int)str.Length]; str.Read(BmpByte, 0, (int)str.Length);
要代码怎么实现??
110,566
社区成员
642,567
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧