473,765 Members | 1,994 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

capture photo in Access

Hi,

I'm trying to build a database which can capture a still image from a
digital camera or web cam and import to the database via an Object or
something like that.
Any help would be very appreciated.

Rattanak
Nov 12 '05 #1
10 17775
On Thu, 27 Nov 2003 01:40:11 -0600 in comp.databases. ms-access,
"Rattanak Song" <to********@com cast.net> wrote:
Hi,

I'm trying to build a database which can capture a still image from a
digital camera or web cam and import to the database via an Object or
something like that.
Any help would be very appreciated.


Your best best is to store the pictures on disk as jpgs and have a
text field that points to their location as storing imagages in the
database is very resource hungry. You can use the image control to
display the jpgs on the screen. Below is a batch file I use to get
pictures off my camera, most cameras nowadays will create a USB mass
storage device when connected to the PC so will appear like a
removable disk. Path names might want changing to suit.

--- begin download.bat --
@echo off
echo Looking for camera...
set d=
rem next two lines wrap in newsreader
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if
exist %%i:\DCIM\100_F UJI\*.jpg set d=%%i

if (%d%)==() goto error
echo off

for %%i in (*.jpg) do if exist %d%:\DCIM\100_F UJI\%%i goto conflict

dir %d%:\DCIM\100_F UJI\*.jpg
copy %d%:\DCIM\100_F UJI\*.jpg .
echo.
echo Attempting Remove pics from camera
rem next two lines wrap in newsreader
for %%i in (*.jpg) do if exist %d%:\DCIM\100_F UJI\%%i del
%d%:\DCIM\100_F UJI\%%i
echo Fin.
echo.
if exist %d%:\DCIM\100_F UJI\*.jpg echo Pictures still exist on camera.
if exist %d%:\DCIM\100_F UJI\*.jpg pause
set d=
goto eoj

:conflict
echo *** Error ***
echo Name conflicts exist
rem next two lines wrap in newsreader
for %%i in (*.jpg) do if exist %d%:\DCIM\100_F UJI\%%i echo %%i already
exists on HDD
rem next two lines wrap in newsreader
echo You must resolve these conflicts before this download can take
place
pause
goto eoj

:error
echo Cannot find camera.
pause

:eoj
--- end download.bat ---

--
A)bort, R)etry, I)nfluence with large hammer.
Nov 12 '05 #2
Thanks,

Rattanak

"Trevor Best" <bouncer@localh ost> wrote in message
news:fm******** *************** *********@4ax.c om...
On Thu, 27 Nov 2003 01:40:11 -0600 in comp.databases. ms-access,
"Rattanak Song" <to********@com cast.net> wrote:
Hi,

I'm trying to build a database which can capture a still image from a
digital camera or web cam and import to the database via an Object or
something like that.
Any help would be very appreciated.


Your best best is to store the pictures on disk as jpgs and have a
text field that points to their location as storing imagages in the
database is very resource hungry. You can use the image control to
display the jpgs on the screen. Below is a batch file I use to get
pictures off my camera, most cameras nowadays will create a USB mass
storage device when connected to the PC so will appear like a
removable disk. Path names might want changing to suit.

--- begin download.bat --
@echo off
echo Looking for camera...
set d=
rem next two lines wrap in newsreader
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if
exist %%i:\DCIM\100_F UJI\*.jpg set d=%%i

if (%d%)==() goto error
echo off

for %%i in (*.jpg) do if exist %d%:\DCIM\100_F UJI\%%i goto conflict

dir %d%:\DCIM\100_F UJI\*.jpg
copy %d%:\DCIM\100_F UJI\*.jpg .
echo.
echo Attempting Remove pics from camera
rem next two lines wrap in newsreader
for %%i in (*.jpg) do if exist %d%:\DCIM\100_F UJI\%%i del
%d%:\DCIM\100_F UJI\%%i
echo Fin.
echo.
if exist %d%:\DCIM\100_F UJI\*.jpg echo Pictures still exist on camera.
if exist %d%:\DCIM\100_F UJI\*.jpg pause
set d=
goto eoj

:conflict
echo *** Error ***
echo Name conflicts exist
rem next two lines wrap in newsreader
for %%i in (*.jpg) do if exist %d%:\DCIM\100_F UJI\%%i echo %%i already
exists on HDD
rem next two lines wrap in newsreader
echo You must resolve these conflicts before this download can take
place
pause
goto eoj

:error
echo Cannot find camera.
pause

:eoj
--- end download.bat ---

--
A)bort, R)etry, I)nfluence with large hammer.

Nov 12 '05 #3
Hi,

I found a sample database that access directly to a webcams api and
you can capture a photo pushing a command button and paste it to an
image control.
I got the same problem as you and this was a great solution for me.

Please, let me know if you are interested on it and I will send you a
message directly.

Regards,

"Rattanak Song" <to********@com cast.net> wrote in message news:<zM******* *************@c omcast.com>...
Thanks,

Rattanak

"Trevor Best" <bouncer@localh ost> wrote in message
news:fm******** *************** *********@4ax.c om...
On Thu, 27 Nov 2003 01:40:11 -0600 in comp.databases. ms-access,
"Rattanak Song" <to********@com cast.net> wrote:
Hi,

I'm trying to build a database which can capture a still image from a
digital camera or web cam and import to the database via an Object or
something like that.
Any help would be very appreciated.


Your best best is to store the pictures on disk as jpgs and have a
text field that points to their location as storing imagages in the
database is very resource hungry. You can use the image control to
display the jpgs on the screen. Below is a batch file I use to get
pictures off my camera, most cameras nowadays will create a USB mass
storage device when connected to the PC so will appear like a
removable disk. Path names might want changing to suit.

--- begin download.bat --
@echo off
echo Looking for camera...
set d=
rem next two lines wrap in newsreader
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if
exist %%i:\DCIM\100_F UJI\*.jpg set d=%%i

if (%d%)==() goto error
echo off

for %%i in (*.jpg) do if exist %d%:\DCIM\100_F UJI\%%i goto conflict

dir %d%:\DCIM\100_F UJI\*.jpg
copy %d%:\DCIM\100_F UJI\*.jpg .
echo.
echo Attempting Remove pics from camera
rem next two lines wrap in newsreader
for %%i in (*.jpg) do if exist %d%:\DCIM\100_F UJI\%%i del
%d%:\DCIM\100_F UJI\%%i
echo Fin.
echo.
if exist %d%:\DCIM\100_F UJI\*.jpg echo Pictures still exist on camera.
if exist %d%:\DCIM\100_F UJI\*.jpg pause
set d=
goto eoj

:conflict
echo *** Error ***
echo Name conflicts exist
rem next two lines wrap in newsreader
for %%i in (*.jpg) do if exist %d%:\DCIM\100_F UJI\%%i echo %%i already
exists on HDD
rem next two lines wrap in newsreader
echo You must resolve these conflicts before this download can take
place
pause
goto eoj

:error
echo Cannot find camera.
pause

:eoj
--- end download.bat ---

--
A)bort, R)etry, I)nfluence with large hammer.

Nov 12 '05 #4
Hi,

That would be great for me.
I'm looking forward for your message.

Regard,

Rattanak

"Xavi" <xa******@acons a.infonegocio.c om> wrote in message
news:e1******** *************** ***@posting.goo gle.com...
Hi,

I found a sample database that access directly to a webcams api and
you can capture a photo pushing a command button and paste it to an
image control.
I got the same problem as you and this was a great solution for me.

Please, let me know if you are interested on it and I will send you a
message directly.

Regards,

"Rattanak Song" <to********@com cast.net> wrote in message

news:<zM******* *************@c omcast.com>...
Thanks,

Rattanak

"Trevor Best" <bouncer@localh ost> wrote in message
news:fm******** *************** *********@4ax.c om...
On Thu, 27 Nov 2003 01:40:11 -0600 in comp.databases. ms-access,
"Rattanak Song" <to********@com cast.net> wrote:

>Hi,
>
>I'm trying to build a database which can capture a still image from a
>digital camera or web cam and import to the database via an Object or
>something like that.
>Any help would be very appreciated.

Your best best is to store the pictures on disk as jpgs and have a
text field that points to their location as storing imagages in the
database is very resource hungry. You can use the image control to
display the jpgs on the screen. Below is a batch file I use to get
pictures off my camera, most cameras nowadays will create a USB mass
storage device when connected to the PC so will appear like a
removable disk. Path names might want changing to suit.

--- begin download.bat --
@echo off
echo Looking for camera...
set d=
rem next two lines wrap in newsreader
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if
exist %%i:\DCIM\100_F UJI\*.jpg set d=%%i

if (%d%)==() goto error
echo off

for %%i in (*.jpg) do if exist %d%:\DCIM\100_F UJI\%%i goto conflict

dir %d%:\DCIM\100_F UJI\*.jpg
copy %d%:\DCIM\100_F UJI\*.jpg .
echo.
echo Attempting Remove pics from camera
rem next two lines wrap in newsreader
for %%i in (*.jpg) do if exist %d%:\DCIM\100_F UJI\%%i del
%d%:\DCIM\100_F UJI\%%i
echo Fin.
echo.
if exist %d%:\DCIM\100_F UJI\*.jpg echo Pictures still exist on camera.
if exist %d%:\DCIM\100_F UJI\*.jpg pause
set d=
goto eoj

:conflict
echo *** Error ***
echo Name conflicts exist
rem next two lines wrap in newsreader
for %%i in (*.jpg) do if exist %d%:\DCIM\100_F UJI\%%i echo %%i already
exists on HDD
rem next two lines wrap in newsreader
echo You must resolve these conflicts before this download can take
place
pause
goto eoj

:error
echo Cannot find camera.
pause

:eoj
--- end download.bat ---

--
A)bort, R)etry, I)nfluence with large hammer.

Nov 12 '05 #5
If it is a _sample_, why not post a hyperlink here so others can take a look
at it, too?

"Xavi" <xa******@acons a.infonegocio.c om> wrote in message
news:e1******** *************** ***@posting.goo gle.com...
Hi,

I found a sample database that access directly to a webcams api and
you can capture a photo pushing a command button and paste it to an
image control.
I got the same problem as you and this was a great solution for me.

Please, let me know if you are interested on it and I will send you a
message directly.

Regards,

"Rattanak Song" <to********@com cast.net> wrote in message

news:<zM******* *************@c omcast.com>...
Thanks,

Rattanak

"Trevor Best" <bouncer@localh ost> wrote in message
news:fm******** *************** *********@4ax.c om...
On Thu, 27 Nov 2003 01:40:11 -0600 in comp.databases. ms-access,
"Rattanak Song" <to********@com cast.net> wrote:

>Hi,
>
>I'm trying to build a database which can capture a still image from a
>digital camera or web cam and import to the database via an Object or
>something like that.
>Any help would be very appreciated.

Your best best is to store the pictures on disk as jpgs and have a
text field that points to their location as storing imagages in the
database is very resource hungry. You can use the image control to
display the jpgs on the screen. Below is a batch file I use to get
pictures off my camera, most cameras nowadays will create a USB mass
storage device when connected to the PC so will appear like a
removable disk. Path names might want changing to suit.

--- begin download.bat --
@echo off
echo Looking for camera...
set d=
rem next two lines wrap in newsreader
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if
exist %%i:\DCIM\100_F UJI\*.jpg set d=%%i

if (%d%)==() goto error
echo off

for %%i in (*.jpg) do if exist %d%:\DCIM\100_F UJI\%%i goto conflict

dir %d%:\DCIM\100_F UJI\*.jpg
copy %d%:\DCIM\100_F UJI\*.jpg .
echo.
echo Attempting Remove pics from camera
rem next two lines wrap in newsreader
for %%i in (*.jpg) do if exist %d%:\DCIM\100_F UJI\%%i del
%d%:\DCIM\100_F UJI\%%i
echo Fin.
echo.
if exist %d%:\DCIM\100_F UJI\*.jpg echo Pictures still exist on camera.
if exist %d%:\DCIM\100_F UJI\*.jpg pause
set d=
goto eoj

:conflict
echo *** Error ***
echo Name conflicts exist
rem next two lines wrap in newsreader
for %%i in (*.jpg) do if exist %d%:\DCIM\100_F UJI\%%i echo %%i already
exists on HDD
rem next two lines wrap in newsreader
echo You must resolve these conflicts before this download can take
place
pause
goto eoj

:error
echo Cannot find camera.
pause

:eoj
--- end download.bat ---

--
A)bort, R)etry, I)nfluence with large hammer.

Nov 12 '05 #6
Trevor Best <bouncer@localh ost> wrote in message news:<fm******* *************** **********@4ax. com>...
On Thu, 27 Nov 2003 01:40:11 -0600 in comp.databases. ms-access,
"Rattanak Song" <to********@com cast.net> wrote:
Hi,

I'm trying to build a database which can capture a still image from a
digital camera or web cam and import to the database via an Object or
something like that.
Any help would be very appreciated.


Your best best is to store the pictures on disk as jpgs and have a
text field that points to their location as storing imagages in the
database is very resource hungry. You can use the image control to
display the jpgs on the screen. Below is a batch file I use to get
pictures off my camera, most cameras nowadays will create a USB mass
storage device when connected to the PC so will appear like a
removable disk. Path names might want changing to suit.

--- begin download.bat --
@echo off
echo Looking for camera...
set d=
rem next two lines wrap in newsreader
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if
exist %%i:\DCIM\100_F UJI\*.jpg set d=%%i

if (%d%)==() goto error
echo off

for %%i in (*.jpg) do if exist %d%:\DCIM\100_F UJI\%%i goto conflict

dir %d%:\DCIM\100_F UJI\*.jpg
copy %d%:\DCIM\100_F UJI\*.jpg .
echo.
echo Attempting Remove pics from camera
rem next two lines wrap in newsreader
for %%i in (*.jpg) do if exist %d%:\DCIM\100_F UJI\%%i del
%d%:\DCIM\100_F UJI\%%i
echo Fin.
echo.
if exist %d%:\DCIM\100_F UJI\*.jpg echo Pictures still exist on camera.
if exist %d%:\DCIM\100_F UJI\*.jpg pause
set d=
goto eoj

:conflict
echo *** Error ***
echo Name conflicts exist
rem next two lines wrap in newsreader
for %%i in (*.jpg) do if exist %d%:\DCIM\100_F UJI\%%i echo %%i already
exists on HDD
rem next two lines wrap in newsreader
echo You must resolve these conflicts before this download can take
place
pause
goto eoj

:error
echo Cannot find camera.
pause

:eoj
--- end download.bat ---


=============== =============== =============== ======
Have you guys got it right please let me now!! I'll do enything!!!!
te********@webm ail.co.za
Nov 12 '05 #7
NB
xa******@aconsa .infonegocio.co m (Xavi) wrote in message news:<e1******* *************** ****@posting.go ogle.com>...
Hi,

I found a sample database that access directly to a webcams api and
you can capture a photo pushing a command button and paste it to an
image control.

Where does it store the image? on disk as a separate file or inside
mdb?
I am interested in looking at it too. Pls provide link or email to
nickbose at softhomedotnet

I figure the ideal interface should be:
- you can view the live image from the webcam within the Access form
- upon pressing a command button: you will be asked for file location
to save the captured image
- the path then will be stored in a text field in Access
- the image control will be updated to show that captured image

I think the real challenge is to integrate the first 2 steps into
Access form

Thks
NB
Nov 12 '05 #8
On 15 Dec 2003 17:10:51 -0800 in comp.databases. ms-access,
ni******@lycos. com (NB) wrote:
xa******@acons a.infonegocio.c om (Xavi) wrote in message news:<e1******* *************** ****@posting.go ogle.com>...
Hi,

I found a sample database that access directly to a webcams api and
you can capture a photo pushing a command button and paste it to an
image control.

Where does it store the image? on disk as a separate file or inside
mdb?
I am interested in looking at it too. Pls provide link or email to
nickbose at softhomedotnet

I figure the ideal interface should be:
- you can view the live image from the webcam within the Access form
- upon pressing a command button: you will be asked for file location
to save the captured image
- the path then will be stored in a text field in Access
- the image control will be updated to show that captured image

I think the real challenge is to integrate the first 2 steps into
Access form


If you're interested, I wrote this app
(http://www.trevor.easynet.co.uk/downloads/Images.zip) for viewing
images, it does no capturing itself from within Access neither does it
do any organisation of images but it's something you can build on. The
images themselves will be on disk rather in the database, which IMHO
is the best way, it avoids bloat and overhead of storing BMP
representations of jpegs that Access does. Methods of getting from
camera to disk vary, WinXP has it built in or there's the batch file I
posted earlier in this thread.

(http://www.trevor.easynet.co.uk/down...Images2000.zip for 2K
users, A97 users, ask here and I'll convert and upload for you).

--
A)bort, R)etry, I)nfluence with large hammer.
Nov 12 '05 #9
NB
Trevor Best <bouncer@localh ost> wrote in message news:<g3******* *************** **********@4ax. com>...
If you're interested, I wrote this app
(http://www.trevor.easynet.co.uk/downloads/Images.zip) for viewing
images, it does no capturing itself from within Access neither does it

Thks for the link. However, your app doesn't seem to handle live
(motion) images from a webcam at all? (that's what I'm very interested
in)
I understand that storing images outside Access is now almost a
standard approach because of the mdb bloating problem.

NB
Nov 12 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1754
by: BH | last post by:
how can I capture a photo in C++ via a video cam?
2
1974
by: Tony WONG | last post by:
i am not sure that this subject can be discussed here. i have many photos. they are stored according to the name of the EVENT and YEAR. i will set up a database (sql or access) to store information of the photo and set up a folder to store the "PHOTOs". and design a web page to show. My question is how to put the photo on the web page.
3
5923
by: Ken | last post by:
I have a database called autographs.mdb that is in the "XYZ" folder in the "database" folder. I have a form in the database that I want to display a photo of the celeb on. The photos are in a "graphics" folder that is on the same level as the "xyz" folder. The only way I can seem to make it work is to put the entire path including hard drive in the table (c:\database\graphics\photo.jpg). But I also want to upload the database to the web...
2
4225
by: falk.strobach | last post by:
Hallo, ich habe mir im Access eine Bilddatenbank angelegt. Die Bilder sind als OLE-Objekt (verbunden mit dem Photo Editor) in der Datenbank enthalten. Mit der Umstellung auf MS Office 2003 gibt es den Photo Editor nicht mehr. Somit kann ich die Bilder nicht mehr in der Datenbank angezeigt werden. Gibt es eine Möglichkeit das OLE-Objekt umzuwandeln? Auch wenn ich dem OLE-Objekt die Klasse einer anderen Anwendung zuweise, hat das keinen
1
1578
by: erickwan88 | last post by:
I want to capture the input from a writing pad and apply in vb2005 but I don't know any programming codes about it. The writing pad is connected by a USB port. Before I run the writing pad program, it can be a mouse and move around double click = normal one click click twice = normal double click
1
2091
by: DBC User | last post by:
Hi Guys, I need help to identify a open source or a commerical software that I can embed in my web app to capture a photo using local web cam or a camera hooked up to the PC. Any comments or suggestions? I said, it has to be compact with web app since I need to store the image in a central ftp server for photo sharing. Thanks for your thoughts.
4
5509
by: dclingan | last post by:
OS XP Access 2003 additional program available MS Photo Editor 3 I understand Access 2003 did not come with Photo Editor and such needs to be installed. I have done this. I have inserted a photos field in my table and tried to insert the photo by inserting object (the photo is the sample empid1.bmp with office). After I have inserted it I get "package" in the field. Now Access help says this is because Photo Editor was not install, but...
0
2036
by: tsarumugavel m | last post by:
hi, i am new in asp.net. my project specifiaction is caputre the image from webcam through asp.net coding. I want to capture the visitor photo. the web cam connect in the client system. i click the capture button in client system then photo want to take. Please help me urgent? thanks By Arumguavel M
1
3135
by: Steve | last post by:
Hi All I have a VB.net 2005 windows forms application which uses webcam to take photos of staff members etc for use within the application All works fine if an external webcam is used The problem I have is when clients have a laptop with built in webcam The first time I connect to the capture drivers all works well. If I try to
0
9566
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9393
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10153
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9946
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8830
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6646
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5413
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3530
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2800
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.