Link to home
Start Free TrialLog in
Avatar of Ristogod
Ristogod

asked on

Inserting an OLE Object?

I need to know how to insert an OLE Object into access? But I need to know how to do it with an SQL statement so I can write it using ASP. My webpage already has the upload input field for uploading the files.
Avatar of Jim Dettman (EE MVE)
Jim Dettman (EE MVE)
Flag of United States of America image

 
  You can't do it with straight SQL.  To insert an OLE object, you need to do it via a form.

  You really don't want to do this anyway's, as Access adds its own wrapper to the object, which makes the database bloat considerably.

  Your best bet is to simply leave the object in its own file and access it as needed.

  If you really want to store it in the MDB, you can write directly to a memo field, but then you'll need to extract it to a file before you can work with it.  Without the wrapper Access won't know how to handle the field.

Jim.
ASKER CERTIFIED SOLUTION
Avatar of Alan Warren
Alan Warren
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ristogod
Ristogod

ASKER

Thnx Alan

Wow? I'm just learning ASP and boy does that seem confusing. I don't think that I understand what that all means.

Another thing, how do I get the file to the server through a webpage? I want people to be able to submit papers online and have them stored in my Access DB.
Ristogod,

What stage are you up to with the upload file?
Has the user selected a file for upload?
Is the upload control within a <form> tag?
Have you posted the form to the server?

There is a bit involved with getting the upload file to the server, but once it is there the formData can be parsed and the file can be extracted from the the formBinary and reconstructed as a file.

Hang in there!
There is never any shortage of stuff to get your head around.


Good Resource:(Sample Code)
http://www.15seconds.com/issue/990723.htm
alan@cashoz.com



No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept question, points to alanwarren
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
1William
EE Cleanup Volunteer