News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Extract Objects from an Access Database with PHP, Part 2
June 03, 2013 @ 10:37:24

PHPMaster.com has posted the second part of their series covering connecting PHP to a legacy Access database. In part one they introduced you to working with the data and how to extract the object. In this new part they look at specific file types and how to pull out their data.

In this second part we'll learn how to extract Acrobat PDF documents and take a brief look at a selection of image formats. The only similarity that PDF, GIF, PNG, etc., have when stored in an Access database is that they are all wrapped in an OLE container consisting of a variable length header and trailer. As we shall see, the trailer can be ignored as it was with the package discussed in Part 1. The header is more useful, but doesn't contain all the information we need.

They get into the details of the headers for each type of object and include screenshots of what they look like in a hex viewer. The code for the complete class is included in the post, making it easy to drop in and get started with your transition from database object to external file.

0 comments voice your opinion now!
extract object access database tutorial series pdf image

Link: http://phpmaster.com/extract-ole-objects-from-an-access-database-using-php-2

blog comments powered by Disqus

Similar Posts

Anson Cheung's Blog: Create nodes in eZ Publish using PHP

NetTuts.com: Using Plugins to Speed Up WordPress

Chris Hartjes' Blog: Don’t Fear The Command Line: Using CakePHP Shells

Michaelangelo van Dam' Blog: Configuring Zend Framework apps for Windows Azure

DevShed: An Image is Worth a Thousand Words in PHP (Part 2)


Community Events

Don't see your event here?
Let us know!


api library opinion laravel laravel5 unittest series framework community extension introduction example xdebug php7 install voicesoftheelephpant interview podcast language release

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework