Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enter/Retrive Picture/Signature from database
Message
From
10/08/2008 12:53:50
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
10/08/2008 09:11:13
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01337885
Message ID:
01337913
Views:
13
>Greeting all.
>
>Please, i'm having issue with my program on payroll. I need to attach/save the employees' picture and signature against their record.
>
>Please can anyone assist me on how to use VFP 6 in achieving it. All my programs are written on VFP 6 but I do not know how to code the picture and signature, that on click of a button and entering an employee's name/number, it will display the records, picture and signature of the staff.
>Thanks

Most programmers here will agree that you should NOT use a General field. It takes up too much space, and it is difficult to get a picture back out.

The usual recommendation is to keep the picture as a separate file, for example, a JPG file. In the database, you will only have the name of the picture file.

You can show this picture on the form, with an Image control. You will need some commands to update the picture on the Image control, for example, when you change to another record.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform