-
Oct 31st, 2014, 12:55 PM
#1
Thread Starter
Member
'nstead save to file, how can I save it into a traditional .mdb?
'In traditional ASP:
Dim fileStream
Set fileStream = Server.CreateObject("ADODB.Stream")
'......Got fileStream of a file from user's computer and then successfully pasted it into server:
fileStream.SaveToFile Server.MapPath("./uploadFolder/xxxx.jpg"), 2
'Instead save to file, how can I save it into a traditional .mdb?
'I tried to insert it into a OLE fileld [Image/Zip] without succsedd:
strSQL = "Insert Into Table1([FileName],[Image/Zip]) " & "Values('" & fileName & "'," & fileStream.Read & ")"
'or: strSQL = "Insert Into Table1([FileName],[Image/Zip]) " & "Values('" & fileName & "'," & fileStream & ")"
objConnection.Execute(strSQL)
I will be very appreciated for any hint!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|