如何用Autodesk Express Viewer在web上显示数据库里的dwf文件?
下面这个网页可以正常显示dwf文件(利用Autodesk Express Viewer工具) <BR> <BR>cad_view.asp <BR> <BR><% <BR> if Request.QueryString ("pipe_num")<>"" then <BR> pipe_num=Request.QueryString ("pipe_num") <BR> else <BR> pipe_num=543 <BR> <BR> end if <BR> %> <BR><html> <BR> <BR> <body> <BR> <BR><tr height="90%"> <BR> <td colspan="10" align="center"> <BR><object id = "viewer" <BR>classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF" <BR>codebase="<A href="http://www.autodesk.com/global/expressviewer/installer/ExpressViewerSetup.cab" target="_blank" >http://www.autodesk.com/global/expressviewer/installer/ExpressViewerSetup.cab</A>" width="100%" height="100%" > <BR><param name = "Src" value="images/<%=pipe_num%>.dwf"> <BR> </td> <BR> </tr> <BR> <br> <BR> <BR> </body> <BR> <BR></html>前面是在images文件夹里有几个dwf文件,可以显示,如果我的dwf文件以Binary 存在数据苦里,该如何显示啊??????<BR><% <BR>dim s,dwf,num <BR> if Request.QueryString ( "pipe_num ") < > " " then <BR> num=Request.QueryString ( "pipe_num ") <BR> else <BR> num=543 <BR> <BR> end if <BR> set connGraph=server.CreateObject( "ADODB.connection ") <BR>conngraph.ConnectionString =session( "connection_string ") <BR>conngraph.Open <BR>set rec=server.createobject( "ADODB.recordset ") <BR>strsql= "select * from pipe_map where pipe_num=' "&num& "' " <BR>rec.open strsql,connGraph,1,1 <BR> <BR>Response.ContentType = "image/dwf" '什么意思?小弟不懂?<BR>Response.BinaryWrite rec("pipe_map").GetChunk(750000)
set rec=nothing <BR>set connGraph=nothing <BR>% > <BR> <html > <BR> <BR> <body > <BR> <br > <BR> <tr height= "90% " > <BR> <td colspan= "10 " align= "center " > <BR> <object id = "viewer " <BR>classid= "clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF " <BR> codebase= "<A href="http://www.autodesk.com/global/expressviewer/installer/ExpressViewerSetup.cab" target="_blank" >http://www.autodesk.com/global/expressviewer/installer/ExpressViewerSetup.cab</A> " width= "100% " height= "100% " > <BR> <param name = "Src " value= "<%=dwf%> " > <BR> </td > <BR> </tr > <BR> <br > <BR> <BR> </body > <BR> <BR> </html ><BR>
页:
[1]