Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Store an Image(OLE Object) into Access Data Base

Store an Image(OLE Object) into Access Data Base
 
C# Winform application Store an Image into Access Data Base
ÓÃÒÔÏ·½·¨
  /// 2010-02-26 Forever
        private void SaveImageInDataBase()
        {
            OleDbConnection conn = null;
            try
            {
                string strDBFile = Environment.CurrentDirectory + @"\Test.mdb";
                string connstr = "Jet OLEDB:Database Password=;Data Source='" + strDBFile + "';Password=;Provider='Microsoft.Jet.OLEDB.4.0'";
                conn = new OleDbConnection(connstr);
                OleDbCommand cmd;
                String strimg = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\test2.bmp";
                //Read Image Bytes into a byte array
                //Initialize byte array with a null value initially.
                byte[] imageData = null;
                //Use FileInfo object to get file size.
                FileInfo fInfo = new FileInfo(strimg);
  &nb


Ïà¹ØÎĵµ£º

access²Ù×÷

uses
ADODB;
procedure TForm1.SetupTable(sender:tobject);
Var
adocon1:TADOConnection;
strSQL:string;
Const
SConnectionString= 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=%s;'
+'Jet OLEDB:Database Password=%s;';
begin
adocon1:=TADOConnection.creat(self);
adocon1.ConnectionString:=format(S ......

ACCESSÊý¾Ýµ¼Èëµ½SQL Server2005


ÔÚSQL Server2005ÖÐÑ¡ÖÐÒªµ¼ÈëÊý¾ÝµÄ¿â > ÓÒ¼ü > н¨²éѯ£º
Ö´ÐÐSQLÓï¾äÈçÏ£º
insert into
Ä¿±êÊý¾Ý¿â±íÃû (×Ö¶Î1,×Ö¶Î2,....) select
×Ö¶Î1,×Ö¶Î2... from
openrowset
('microsoft.jet.oledb.4.0',';database=Ô´Êý¾Ý¿â·¾¶£¨È磺d:\test.mdb£©','select * from Ô´±í where ²éѯÌõ¼þ')
SQL Óï¾äÆôÓÃ×é¼ ......

ʹÓÃwxWidgetsµÄODBCÁ´½ÓACCESSÊý¾ÝÔ´

    ѧϰwxWidgetsµÄʱºòÏëÓÃËüÁ¬½ÓÊý¾Ý¿â£¬²»¹ýwxWidgetsµÄѧϰ×ÊÁϷdz£ÉÙ£¬ºÍODBCÓйصľ͸üÉÙ£¬ÍøÂçÉÏÕÒµ½µÄ¶¼²»ÖªµÀΪʲôÎÞ·¨ÕýÈ·ÔËÐС£ÕâÊÇÔÚCSDNÉÏÅóÓѵİïÖúϸ㶨µÄ£¬×Ô¼ºÑéÖ¤¹ý¿ÉÒÔÕýÈ·±àÒëºÍÔËÐС¢³É¹¦¶ÁÈ¡Êý¾ÝÄÚÈݵĴúÂ룺
    wxWidgets°æ±¾£º2.8.10£¨2.9ÒÔºóµÄ°æ±¾²»Ö§³ÖODBC ......

Web Server Access on a VirtualBox Guest


Web Server Access on a VirtualBox Guest
In: Computing ÊýÂë±à³Ì
7
Oct
2008
I been using VirtualBox to deploy virtual machines on my Windows
machine since a significant memory upgrade. VirtualBox is suprisingly
easy to used if compared to VMWare and it just fit to my basic needs.
Access the ......

ÓÃJavascriptÁ¬½ÓAccessÊý¾Ý¿âµÄ·½·¨

±¾ÎĽéÉÜjavascriptÁ¬½ÓaccessÊý¾Ý¿âµÄ·½·¨¡£Õâ¶Î´úÂëÔÚ±¾µØ¿ÉÒÔÕý³£ÔËÐУ¬ÔÚÏßÔòÐèÒª×ã¹»µÄȨÏÞ¡£ÓÉÓÚ²ÉÓÃAccessÊý¾Ý¿â£¬ËùÒÔ²¢²»Ê¹Óñê×¼µÄSQLÓ﷨ʹÓÃʱ¡£ÐèҪעÒâ¡£
Õ⼸Ìì·ÑÁËͦ´óÁ¦ÆøÔÚÍøÉϲéÕÒjavascriptÁ¬½ÓaccessÊý¾Ý¿âµÄ·½·¨£¬¾­¹ýÕûÀí×ܽᣬÖÕÓÚд³öÒ»¶ÎÄܹ»ÓÐЧִÐеĴúÂë¡£
µ«ÊÇÕâ¶Î´úÂëÔÚ±¾µØ¿ÉÒÔÕý³£ÔËÐУ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ