Storing byte array in MySQL Blob with VBA
问题 Anybody have some VBA code that will store a byte array into a MySQL blob column? 回答1: Here is some code. Requires a reference to Microsoft Active Data Objects 2.x Library. It uses the OLE DB provider for MySQL (Might need to install that on the client machine). Sub StoreBLOB(data() As Byte, key As Double) 'stores the BLOB byte array into the row identified by the key 'requires reference to Microsoft Active Data Objects 2.x Library On Error GoTo handler: Dim con As New ADODB.Connection Dim rs