473,480 Members | 1,663 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Saving an image to a temporary file?

I want to use a command button, say "cmdDisplayImage" to display/
transfer a captured image from the
ezVidCap1 control to an image or OLE box on the same form such as
"PhotoPreview" (not sure which one is possible/best...perhaps someone
can help me...I'm new at this.) I really don't want to "save" it
first.

Then, I want another command button such as "cmdSaveImage" to save the
file to a folder (such as \\Server\Database\Images when the user
clicks another command button when they have the image they want in
the "PhotoPreview" box. Right now I have something for this like:

Dim stPhotoPath As String
stPhotoPath = "photo_" & [GuestPhotoLink] & ".dib"
ezVidCap1.SaveDIB "\\Server\Database\Images\" & [stPhotoPath]

This has worked for storing the image directly from the ezVidCap
control, but I really want to send it to the preview and THEN save it
to the folder when the user clicks the cmdSaveImage button. Is there
any way to keep it in a temp file until it is saved and then delete
the temp file? Is there a better way?

Once it is saved, how do I go about sending the path to my
tblPhotos.GuestPhotoLink field?

I read something about image lists on a form, but I don't know how to
use them or if that's what I need.

Can anyone help??
Mar 24 '08 #1
2 3353
First, you have repeatedly asked this question in many seperate NG's. In the
future, please cross post to the relevant NG's at one time.

Extensive VB and GDI API programming would be required to produce a working
solution. You might consider purchasing an ActiveX control from a third
party as this would greatly reduce the complexity of building your solution.
Have a look at this control and see if it can be used as the core of your
solution.
http://www.ammara.com/dbpix/access.html
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"RussCRM" <sr*********@gmail.comwrote in message
news:8a**********************************@a70g2000 hsh.googlegroups.com...
>I want to use a command button, say "cmdDisplayImage" to display/
transfer a captured image from the
ezVidCap1 control to an image or OLE box on the same form such as
"PhotoPreview" (not sure which one is possible/best...perhaps someone
can help me...I'm new at this.) I really don't want to "save" it
first.

Then, I want another command button such as "cmdSaveImage" to save the
file to a folder (such as \\Server\Database\Images when the user
clicks another command button when they have the image they want in
the "PhotoPreview" box. Right now I have something for this like:

Dim stPhotoPath As String
stPhotoPath = "photo_" & [GuestPhotoLink] & ".dib"
ezVidCap1.SaveDIB "\\Server\Database\Images\" & [stPhotoPath]

This has worked for storing the image directly from the ezVidCap
control, but I really want to send it to the preview and THEN save it
to the folder when the user clicks the cmdSaveImage button. Is there
any way to keep it in a temp file until it is saved and then delete
the temp file? Is there a better way?

Once it is saved, how do I go about sending the path to my
tblPhotos.GuestPhotoLink field?

I read something about image lists on a form, but I don't know how to
use them or if that's what I need.

Can anyone help??

Mar 24 '08 #2
Stephen,

Thanks for the heads up. If you could explain how to cross-post, I
would be glad to do that in the future.

Mar 24 '08 #3

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

Similar topics

0
2157
by: mchl gdbt | last post by:
Hi, I have several thousand tiffs generated by application A which are read by application B. I need to remove a few colours from the tiffs and I decided to try with the python imaging library....
4
48181
by: Michael Kennedy [UB] | last post by:
Hi Everyone, I have this multithreaded C# windows forms application which does a lot of image processing. Occasionally, I get the following error: A generic error occurred in GDI+....
5
3112
by: Thaynann | last post by:
I have an app that (at the moment) moves through files that are on a web site, and deletes them, wat i want to do for the next stage, is to be able to download each file before i delete it. i...
4
3268
by: dale zhang | last post by:
Hi, I am trying to save and read an image from MS Access DB based on the following article: http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp Right now, I saved images without any...
5
4710
by: TheGanjaMan | last post by:
Hi everyone, I'm trying to write up a simple image stamper application that stamps the Exif date information from the jpegs that I've taken from my digital camera and saves the new file with the...
6
6426
by: Mark Denardo | last post by:
My question is similar to one someone posted a few months back, but I don't see any replies. Basically I want to be able to have users upload photos and save them in a database (as byte data)...
3
2432
by: pozze | last post by:
Hi, I've just made the change from ASP to .net. I have a file (code below) that saves a user submitted file to a MS SQL 2005 database. It collects the file name, file size, file type, and lastly...
6
8044
by: Eddie | last post by:
Hi all, I am displaying a number of reports, and giving the users an option to display them on the web or download them to Excel. If they want the Excel file, I just use the PHP header command...
10
7393
by: Nathan Sokalski | last post by:
I am using ASP.NET 2.0, and need to know how to save and use an image that is stored in an SQL Server image datatype. How can I do this using ASP.NET? Thanks.
0
7034
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,...
0
7076
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6732
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...
0
6886
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4472
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...
0
2990
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1294
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
174
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...

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.