Avatar of jbpeake
jbpeake

asked on 

Getting Long Binary Data out of Access and saving it as a file

Hello all, I'm new, I hope I'm in the right area and appreciate any help that you can provide.

Several years ago I created a website using ASP where teachers and college students could upload lesson plans, power points, hand outs, etc into an Access Database (Access 2003) and then everyone could search for specific subject so they could share resources, everyone was happy.  The site is located at:  http://agsc.tamu.edu/lessonplan/search.asp  I know it looks terrible, that was when I was first learning to build websites.  Anyways, that site resides on a server at Texas A&M, I left Texas five years ago and when they made some changes to the server the site stopped working and no one can upload files.  So, now that I'm in Georgia I built a new and improved version of the old site.  The new one is located at:  http://www.agteacher.com/ .

Texas A&M sent me the Access database from the first site and asked me to add all of those files to the new site.  The problem is that all of the files are stored in the Access database as "Long Binary Data" or BLOB data.  The only way I know to get them out is to go to the old website and right click on each file and save it to my local machine; with over 2000 files this would be a pain in the neck.  The new site uses PHP and a MySQL database where I store the files in a directory and just store the path in the MySQL database. I can move all of the data except for the files by exporting it from Access as a CSV and then import it into the MySQL database, but I really need to figure out a way to automate it, or do a batch process, I don't know, but there has to be a better way to get all of those files out of the Access database and put them into a directory.

I have read and read forums trying to figure this out, I'm really at my wits end.  If this is too complicated to explain for free I would be happy to pay someone to help me with this... I'm just stuck :(  Thanks in advance for any help.
PHPMicrosoft Access

Avatar of undefined
Last Comment
jbpeake

8/22/2022 - Mon