
Saving DB binary field data into file
Von den Thu, 04 Nov 1999 18:20:20 +0800, William Chan
Quote:
> Hi all experts,
> I have a problem dealing with objects. I have an Access database with a
> binary field contains photo, voice, Real audio.... binary files. I would
> like to know how can I do it in VB leting user choose file from this
> field (with preview function) and save the file into her local hard disk
1. Open the file as Binary
2. Read the entire file contents into a string variable
3. Set the recordset field variable equal to the string
4. Update the recordset.
---------------------------------------------------------------
:) aka Jack Voltz :) Web: www.ovnet.com/~voltz
:) M A R A N A T H A ! :) Prolife: ./prolife.htm
:) S i e m p r e P o r V i d a ! :) Music: ./music.htm
;) Pour la Vie, toujours ! :) Y2K: ./y2klinks.htm
;) Sempre per la Vita! :)
;) Semper Pro Vita! :)
;) A L W A Y S P R O L I F E ! :)