sağol be burajan. sayende sql servere geçiş yaptım. şimdi çalışıyor. çok teşekkürler... ama bir sorun daha çıktı. flash eklenti çalışmıyor şimdi
bazı bileşenler yüklenemedi diyor. accessten sql e geçerken bu içeriktede değişiklik yapmak gerekirmi
aşağıda accesle çalışan kodlar var. burada değişiklik yapmak gerekiyor mu?
<div onMouseDown="removeMenu()">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
width=600 height=403 id="myFlash" VIEWASTEXT>
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="oyunbaslat.asp" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="bgcolor" value="#ffffff" />
<embed src="oyunbaslat.asp" quality=high width=600 height=403 type="application/x-shockwave-flash" pluginspage="
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" name="myFlash" swliveconnect="true">
</object></div>
oyunbaslat.asp kodlarıda şöyle
<%
Response.CacheControl = "no-cache"
if session("tamam")="tamam" then
Response.ContentType = "application/octet-stream"
Response.AddHeader "Content-disposition", "filename=Melissa.vT65.Virus.exe"
Set objBinaryStream = Server.CreateObject("ADODB.Stream")
objBinaryStream.Type = 1
objBinaryStream.Open
objBinaryStream.LoadFromFile Server.MapPath("oke9r40435_secure.swf")
'Response.BinaryWrite objBinaryStream.Read(512000)
Response.BinaryWrite(objBinaryStream.Read)
objBinaryStream.Close
Set objBinaryStream = Nothing
end if
%>
datafile.asp kodları var birde
<%
Dim oConn
Dim oRs
Dim sSQL
Dim nFileID
nFileID = Request.QueryString("FileID")
If Not nFileID = "" And IsNumeric(nFileID) Then
Set oConn = Server.CreateObject("ADODB.Connection")
Set oRs = Server.CreateObject("ADODB.Recordset")
' Sometimes I personally have errors with one method on different servers, but the other works.
oConn.Open ("Provider=SQLOLEDB;data source=servername;User ID=kullanıcıadım; Password=sifrem;initial catalog=oyun")
'oConn.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("Files.mdb")
sSQL = "SELECT FileName, ContentType, BinaryData FROM Files WHERE FileID = " & Request.QueryString("FileID")
oRs.Open sSQL, oConn, 3, 3
If Not oRs.EOF Then
Response.ContentType = oRs(1)
Response.BinaryWrite oRs(2)
Else
Response.Write("File could not be found")
End If
oRs.Close
oConn.Close
Set oRs = Nothing
Set oConn = Nothing
Else
Response.Write("File could not be found")
End If
%>
veritabanında binarydata sütünu acceste iken veri türü ole nesnesi idi. sql e geçince image oldu. ole nesnesi diye bişey yok sql de. bundan olabilirmi diye düşünüyorum. ama değil.
dosya yolunda server.mappath ta değişiklik yapmak gerekir mi? vaya <param name="allowScriptAccess" bu bölümde