Click here to Skip to main content
15,914,447 members
Home / Discussions / C#
   

C#

 
AnswerRe: Bold and Color TEXT in MessageBox? Pin
Khang Nguyen18-Jun-03 9:23
Khang Nguyen18-Jun-03 9:23 
GeneralWatching input that goes to the components of a container control. Pin
hbandarra18-Jun-03 8:14
hbandarra18-Jun-03 8:14 
GeneralRe: Watching input that goes to the components of a container control. Pin
monrobot1318-Jun-03 8:49
monrobot1318-Jun-03 8:49 
GeneralRe: Watching input that goes to the components of a container control. Pin
hbandarra23-Jun-03 23:05
hbandarra23-Jun-03 23:05 
GeneralTabControl still not good Pin
S van Leent18-Jun-03 8:01
S van Leent18-Jun-03 8:01 
GeneralRe: TabControl still not good Pin
monrobot1318-Jun-03 8:42
monrobot1318-Jun-03 8:42 
GeneralRe: TabControl still not good Pin
S van Leent18-Jun-03 8:48
S van Leent18-Jun-03 8:48 
GeneralRe: TabControl still not good Pin
Ryan Cromwell19-Jun-03 3:46
Ryan Cromwell19-Jun-03 3:46 
GeneralRe: TabControl still not good Pin
J. Dunlap19-Jun-03 7:34
J. Dunlap19-Jun-03 7:34 
GeneralMedia Player Pin
grv57518-Jun-03 7:05
grv57518-Jun-03 7:05 
GeneralRe: Media Player Pin
joan_fl18-Jun-03 7:17
joan_fl18-Jun-03 7:17 
GeneralRe: Media Player Pin
grv57518-Jun-03 7:29
grv57518-Jun-03 7:29 
Questionhow do cahnge volume? Pin
aadilm18-Jun-03 5:16
aadilm18-Jun-03 5:16 
Questionhow do cahnge volume? Pin
aadilm18-Jun-03 5:16
aadilm18-Jun-03 5:16 
Generaldesign question Pin
monrobot1318-Jun-03 3:47
monrobot1318-Jun-03 3:47 
GeneralRe: design question Pin
KingTermite18-Jun-03 5:11
KingTermite18-Jun-03 5:11 
GeneralRe: design question Pin
monrobot1318-Jun-03 6:29
monrobot1318-Jun-03 6:29 
GeneralRe: design question Pin
Khang Nguyen18-Jun-03 5:38
Khang Nguyen18-Jun-03 5:38 
GeneralRe: design question Pin
monrobot1318-Jun-03 6:33
monrobot1318-Jun-03 6:33 
GeneralRe: design question Pin
Khang Nguyen18-Jun-03 7:11
Khang Nguyen18-Jun-03 7:11 
Generalalittle help please Pin
jphuphilly18-Jun-03 3:13
jphuphilly18-Jun-03 3:13 
GeneralRe: alittle help please Pin
Dimitris Iliopoulos18-Jun-03 5:28
Dimitris Iliopoulos18-Jun-03 5:28 
I haven't tried the code that i am going to write but i think it will work.
You want to store binary data in a db field if i guessed write, so:

<br />
System.IO.Filestream newf = System.IO.File.OpenRead(filename);<br />
byte[] data = new byte[newf.length];<br />
newf.Read(data,0,newf.length);<br />
<br />
<br />
<br />
<br />
//Dysplay array data in textbox<br />
for (i=0;i {<br />
TextBox1.Text += Data[i].ToString(); <br />
}<br />
<br />
//Create procedure parameter<br />
object[] obj = new object[1]; <br />
<br />
obj[0] = Data;<br />
<br />
//Execute the procedure with Microsoft.ApplicationBlocks.Data<br />
//Simple procedure<br />
/*CREATE PROCEDURE sp_img(@img image) AS<br />
<br />
insert into tb_img values(@img)*/<br />
<br />
//record data<br />
SqlHelper.ExecuteNonQuery(connectionString,"sp_img",obj); 


Try it i think it will work


From Greece:
Dimitris Iliopoulos
dimilio@yahoo.com
GeneralDatasets - performing selects Pin
MrEyes18-Jun-03 3:13
MrEyes18-Jun-03 3:13 
GeneralRe: Datasets - performing selects Pin
Oleksandr Kucherenko18-Jun-03 3:21
Oleksandr Kucherenko18-Jun-03 3:21 
GeneralRe: Datasets - performing selects Pin
MrEyes18-Jun-03 3:35
MrEyes18-Jun-03 3:35 

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.