Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 1 / February 2006

Tip: Looking for answers? Try searching our database.

Storing and extracting binary files in Access

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave - 17 Feb 2006 09:27 GMT
Hello,

I am wondering about including binary files in my MS Access database
application.  I want to keep my application as just a single MDE or MDB
file, but the users of the app may need some additional files. One file
is an ODBC driver for connecting to an external database, this is a 120
kb DLL.  The other is a 20 kb PDF help document for using the database
application.  I am wondering if it is possible to store these files
within the database and programattically write them to some directory
on disk when the user clicks a button on a form.

Thanks for any advice,
Dave
Anthony England - 17 Feb 2006 09:49 GMT
> Hello,
>
[quoted text clipped - 9 lines]
> Thanks for any advice,
> Dave

You could store such a file as a binary large object bitmap (BLOB) where the
whole data for the file is stored in the field of a table.  See
http://support.microsoft.com/?kbid=210486 for more.
In fact, you could even store the file data in a code module, where the data
is held as a series of ascii strings representing the binary data which is
then written out to a file.  This approach is less standard and you would
need to write a routine which would read the file data and then effectively
write the vba for you.  I've done it like this before, but perhaps the first
idea is easier to recommend.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.