Articles   Members Online:
-Article/Tip Search
-News Group Search over 21 Million news group articles.
-Delphi/Pascal
-CBuilder/C++
-C#Builder/C#
-JBuilder/Java
-Kylix
Member Area
-Home
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Login/Logout
-Become a Member
-Why sign up!
-Newsletter
-Chat Online!
-Indexes NEW!!
Employment
-Build your resume
-Find a job
-Post a job
-Resume Search
Contacts
-Contacts
-Feedbacks
-Link to us
-Privacy/Disclaimer
Embarcadero
Visit Embarcadero
Embarcadero Community
JEDI
Links
How to Save jpg image to sql server with code. Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
Save jpg image to sql server with code 21-Jul-04
Category
Database Others
Language
Delphi All Versions
Views
673
User Rating
10
# Votes
2
Replies
0
Publisher:
Sarbazzadeh, Mostafa
Reference URL:
			1   
2   unit Unit1;
3   
4   interface
5   
6   uses
7     Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
8     Dialogs, DB, ADODB, StdCtrls, ExtCtrls;
9   
10  type
11    TForm1 = class(TForm)
12      Button1: TButton;
13      ADOConnection1: TADOConnection;
14      Image3: TImage;
15      procedure Button1Click(Sender: TObject);
16    private
17      { Private declarations }
18    public
19      { Public declarations }
20    end;
21  
22  var
23    Form1: TForm1;
24  
25  implementation
26  
27  {$R *.dfm}
28  
29  procedure TForm1.Button1Click(Sender: TObject);
30  
31  var
32    Pic : TADOBlobStream;
33    ADOQuery5Picture:TBlobField;
34  begin
35    Pic := TADOBlobStream.Create(ADOQuery5Picture,bmReadWrite);
36    Image3.Picture.Graphic.SaveToStream(Pic);
37    Pic.Position := 0;
38    ADOQuery5Picture.LoadFromStream(Pic);
39  
40  
41  end;
42  
43  end.
44  


			
Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10

 

Advertisement
Share this page
Advertisement
Download from Google

Copyright © Mendozi Enterprises LLC