I have another post which tells you how you can extract your images from tblBinary (for the custom ribbon), but how do you get them in there in the first place? When you click “Add file to data base” this happens:
Private Sub AddFile_Click()
Dim strFile As String
strFile = "file.jpg"
If strFile <> "" Then
If AddBinFile(strFile) = True Then
MsgBox "The file was saved in binary format in table ""tblBinary"" .", vbInformation, "Safe File in data base"
This is the additional “AddBinFile” code that I got from another German example […]
The custom ribbon uses the tblBinary to store images, but how do you get them out, if you want to use the nice images again for something else like a webpage toolbar? How to get the images out of tblBinary Well this code will loop the tblBinary table and save each image to the specified […]