[求助]只差媒体文件的读取问题了
从数据库中读取的媒体文件已损坏,怎么解决呀!!郁闷!!!以下是我代码!
objconn.connectionstring="provider=microsoft.jet.oledb.4.0;" & "data source=" & server.mappath("db1.mdb")
objconn.open()
sqlstring="select * from imagetable where imagename='"& mydrop.selecteditem.text &"'"
objcomm=new oledbcommand(sqlstring,objconn)
objcmd=new oledbdataadapter(objcomm)
objcmd.fill(ds,"imagetypetable")
dim mytable as datatable=ds.tables("imagetypetable")
'response.contenttype="audio/x-mpeg"
response.contenttype=mytable.rows(0).item("imagetype").tostring()
response.binarywrite((ctype(mytable.rows(0)("imagedata"),byte())))
错在哪儿,请各位高手指点指点,求求了!!