Click here to Skip to main content
15,884,237 members
Home / Discussions / C#
   

C#

 
GeneralRe: CSharp Studying Pin
Nick Parker4-Jan-04 6:18
protectorNick Parker4-Jan-04 6:18 
GeneralRe: CSharp Studying Pin
Michael P Butler4-Jan-04 3:53
Michael P Butler4-Jan-04 3:53 
GeneralLoading assemblies Pin
peon20043-Jan-04 21:56
susspeon20043-Jan-04 21:56 
GeneralRe: Loading assemblies Pin
leppie3-Jan-04 22:13
leppie3-Jan-04 22:13 
GeneralRe: Loading assemblies Pin
Heath Stewart4-Jan-04 8:09
protectorHeath Stewart4-Jan-04 8:09 
GeneralRe: Loading assemblies Pin
Broken God4-Jan-04 0:27
Broken God4-Jan-04 0:27 
Generalinserting images into access database Pin
Steve1_rm3-Jan-04 16:19
Steve1_rm3-Jan-04 16:19 
GeneralRe: inserting images into access database Pin
Heath Stewart3-Jan-04 17:30
protectorHeath Stewart3-Jan-04 17:30 
First, learn to use OleDbParameter. This will greatly aide in your problems. Second, set the column in which you want to store the image to an OLEObject.

Then, you need to be able to read the image from a Stream as a byte[] array and assign it:
OleDbCommand cmd = conn.CreateCommand();
cmd.CommandText = "INSERT INTO SomeTable (Name, Image) " +
  "VALUES (@Name, @Image)";
cmd.Parameters.Add("@Name", OleDbType.VarWChar, 40).Value = "ImageName";
cmd.Parameters.Add("@Image", OleDbType.Binary).Value = image;
cmd.ExecuteNonQuery();


 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: inserting images into access database Pin
Anonymous3-Jan-04 18:02
Anonymous3-Jan-04 18:02 
GeneralRe: inserting images into access database Pin
Heath Stewart3-Jan-04 18:05
protectorHeath Stewart3-Jan-04 18:05 
GeneralRe: inserting images into access database Pin
Bo Hunter3-Jan-04 18:44
Bo Hunter3-Jan-04 18:44 
GeneralRe: inserting images into access database Pin
Mazdak3-Jan-04 19:36
Mazdak3-Jan-04 19:36 
Generalplease help me,my project......... Pin
Ahmed Gaser3-Jan-04 11:26
Ahmed Gaser3-Jan-04 11:26 
GeneralRe: please help me,my project......... Pin
leppie3-Jan-04 11:42
leppie3-Jan-04 11:42 
GeneralRe: please help me,my project......... Pin
Colin Angus Mackay3-Jan-04 11:53
Colin Angus Mackay3-Jan-04 11:53 
QuestionChange Locale in .Net? Pin
Juan Miguel Venturello3-Jan-04 11:17
Juan Miguel Venturello3-Jan-04 11:17 
AnswerRe: Change Locale in .Net? Pin
leppie3-Jan-04 11:47
leppie3-Jan-04 11:47 
GeneralRe: Change Locale in .Net? Pin
Juan Miguel Venturello3-Jan-04 13:33
Juan Miguel Venturello3-Jan-04 13:33 
GeneralRe: Change Locale in .Net? Pin
Heath Stewart3-Jan-04 17:13
protectorHeath Stewart3-Jan-04 17:13 
GeneralRe: Change Locale in .Net? Pin
Juan Miguel Venturello4-Jan-04 0:00
Juan Miguel Venturello4-Jan-04 0:00 
GeneralRe: Change Locale in .Net? Pin
leppie4-Jan-04 1:06
leppie4-Jan-04 1:06 
GeneralRe: Change Locale in .Net? Pin
Juan Miguel Venturello4-Jan-04 2:33
Juan Miguel Venturello4-Jan-04 2:33 
GeneralRe: Change Locale in .Net? Pin
Heath Stewart4-Jan-04 5:49
protectorHeath Stewart4-Jan-04 5:49 
GeneralArrayList Madness Pin
eggie53-Jan-04 10:02
eggie53-Jan-04 10:02 
GeneralRe: ArrayList Madness Pin
leppie3-Jan-04 10:21
leppie3-Jan-04 10:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.