Discussion Locked

upload image+classic ASP

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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

1 reply

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.