If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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?? |
Thread Tools | |
Display Modes | |
|
|