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.