Automatically Export Pictures from Access Database

Posted on 2011-03-10
Last Modified: 2012-05-11
We have an access database where all of our staff and student photos are kept. I used a tool to export all of the photos. I would like for any new photos to be automatically exported and emailed.

The database has a table in it named TBL_MEMBERS. There is a field named ALT_ID which has the username for the staff/student. The photo is stored in a field named PHOTO_1. The value shows long binary data. When I exported the photos manually, they were a .jpg

Can someone provide a script that automatically exports newly added photos, names the photo after the username, and then emails the collection of photos?

Thank you!
Question by:Joseph Moody
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 35097940
This is another reason why "Linking" to the files might be better than storing them in the DB.

<Can someone provide a script that automatically exports newly added photos,>
Perhaps, will you be posting any info on your Mysterious "tool to export all of the photos"?
(Are you converting to and from BLOBS?)

<Can someone provide a script that
1. automatically exports newly added photos,
2. names the photo after the username,
3. and then emails the collection of photos?>

So you have three questions here, or one?
Are you looking for a "Complete solution" here or advice...?

LVL 40

Expert Comment

ID: 35097984
Look to Lebans OLEtoDisk:
LVL 22

Author Comment

by:Joseph Moody
ID: 35098080
Hey Jeff,

Thank you for replying!

Here is the tool that I used to manually export every photo: 

I do not know what you mean by "converting to and from BLOBS". I know very very little about access or databases in general. I am purely a desktop admin kind of person.

I have one question that has three specific parts. If someone has the time and knowledge, I would like a complete solution!
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

LVL 22

Author Comment

by:Joseph Moody
ID: 35098089
als315: Thank for the link! Let me look into this.
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 35098208

Typically data in an OLE field will be listed in the table as:
Microsoft Excel Worksheet, Bitmap Image, ...etc.
Not really "long binary data"
long binary data is what a BLOB is:
(Binary) (L)ong (O)(B)ject

This is what appears to be using/doing.
LVL 22

Author Comment

by:Joseph Moody
ID: 35098302
Is there a way to use that tool to filter new entries?
LVL 74

Accepted Solution

Jeffrey Coachman earned 500 total points
ID: 35098624
Not sure what filtering has to do with your question(s)...? my guess is that you would have to contact them directly...

Featured Post

IoT Devices - Fast, Cheap or Secure…Pick Two

The IoT market is growing at a rapid pace and manufacturers are under pressure to quickly provide new products. Can you be sure that your devices do what they're supposed to do, while still being secure?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question