yEn861220 Posted March 9, 2008 Share Posted March 9, 2008 Will AU3 can read and write database picture? I was a beginner! Can cite examples? Link to comment Share on other sites More sharing options...
Developers Jos Posted March 9, 2008 Developers Share Posted March 9, 2008 what are database pictures ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
yEn861220 Posted March 9, 2008 Author Share Posted March 9, 2008 I am sorry, I limited English proficiency. What I mean is that the database(MS Access) read or write picture. Link to comment Share on other sites More sharing options...
ptrex Posted March 9, 2008 Share Posted March 9, 2008 @all What he is talking about is storing pictures in a DB and reading it afterwards. This is supported in SQLite (and other databases). You need to store the data in "BLOB" field. I hope this gets you going. #include <SQLite.au3> Local $hFile, $vData, $sFileName, $sData, $hQuery, $aRow, $sMsg _SQLite_Startup() _SQLite_Open() _SQLite_Exec(-1,"CREATE TABLE IF NOT EXISTS Test (data blob);") $vData = BinaryToString("Hello" & Chr(0) & "World"); = 48656C6C6F00576F726C64 $sData = _SQLite_Encode($vData) _SQLite_Exec(-1,"INSERT INTO Test VALUES (" & $sData & ");") $vData = BinaryToString(Chr(0) & @CRLF); = 000D0A $sData = _SQLite_Encode($vData) _SQLite_Exec(-1,"INSERT INTO Test VALUES (" & $sData & ");") $vData = BinaryToString(Chr(0)); = 00 but this is interpreted as Number and returns 0000000000000000 $sData = _SQLite_Encode($vData) _SQLite_Exec(-1,"INSERT INTO Test VALUES ( " & $sData & " );") _SQLite_Query(-1,"SELECT * FROM Test;",$hQuery) While _SQLite_FetchData ($hQuery, $aRow, 1) = $SQLITE_OK $sMsg &= Hex($aRow[0]) & @CR WEnd MsgBox(0,"Result",$sMsg) _SQLite_Close() _SQLite_Shutdown() regards ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
yEn861220 Posted March 10, 2008 Author Share Posted March 10, 2008 Thank you,regards Although I do not understand, but I will make good use of research. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now