upload image+classic ASP
hi may i know how to upload image in ASP & should store in MS-Access only image(not whole path(physical path)).may i know how to do.
thank u
Software
hi may i know how to upload image in ASP & should store in MS-Access only image(not whole path(physical path)).may i know how to do.
thank u
by satish1987
For Upload File:-
rs("File Data").AppendChunk fileData
Ex is Below :-
If fileSize > 0 Then
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open server.mappath("./db1.mdb")
' Recordset object
Dim rs
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Files", conn, 2, 2
' Adding data
rs.AddNew
rs("File Data").AppendChunk fileData
rs("name") = nameInput
rs("age") = ageInput
rs("address") = address
rs.Update
rs.Close
Set rs = Nothing
This discussion is closed to new replies.
Sort by Trending