Click here to Skip to main content
15,909,645 members
Home / Discussions / C#
   

C#

 
QuestionWindows services Pin
rodrigorodriquez15-Jan-07 4:01
rodrigorodriquez15-Jan-07 4:01 
AnswerRe: Windows services Pin
jonny515-Jan-07 11:19
jonny515-Jan-07 11:19 
QuestionTrial Version Pin
Banjo Ayorinde15-Jan-07 3:39
Banjo Ayorinde15-Jan-07 3:39 
AnswerRe: Trial Version Pin
subai15-Jan-07 4:02
subai15-Jan-07 4:02 
QuestionCrystal Report and SQL 2000 Pin
Banjo Ayorinde15-Jan-07 3:32
Banjo Ayorinde15-Jan-07 3:32 
AnswerRe: Crystal Report and SQL 2000 Pin
subai15-Jan-07 3:59
subai15-Jan-07 3:59 
QuestionImage Pin
hadad15-Jan-07 3:11
hadad15-Jan-07 3:11 
AnswerRe: Image Pin
subai15-Jan-07 3:42
subai15-Jan-07 3:42 
simply take a column with type of varbinary or Image (i tried varbinary) and select and insert like other things

Select Image from Customer where Id = @Id<br />
Insert Into Customer (Image) values(@Image)<br />
Update Customer set Image = @image where Id = @Id

...

in ur application create an array of bytes and a memory stream

for displaying image select image and assign it to byte array
and write byte array to stream
MemoryStream m = new MemoryStream;<br />
m.Write(imageBytes);<br />
Image.FromStream(m);<br />
....

and for inserting just read image with binary reader into the array of bytes and insert into Db

may there was some type error sorry i don't write it in visual studio Cool | :cool:

I Wish the Life Had CTRL-Z

QuestionHow to Download File Pin
prabhakaranns15-Jan-07 3:10
prabhakaranns15-Jan-07 3:10 
AnswerRe: How to Download File Pin
il_masacratore15-Jan-07 3:26
il_masacratore15-Jan-07 3:26 
AnswerRe: How to Download File Pin
Mark J. Miller15-Jan-07 3:38
Mark J. Miller15-Jan-07 3:38 
AnswerRe: How to Download File Pin
Scott Dorman15-Jan-07 6:36
professionalScott Dorman15-Jan-07 6:36 
Questionchat program Pin
hadad15-Jan-07 3:08
hadad15-Jan-07 3:08 
AnswerRe: chat program Pin
il_masacratore15-Jan-07 3:29
il_masacratore15-Jan-07 3:29 
QuestionToolBoxBitmap Pin
aSarafian15-Jan-07 2:48
aSarafian15-Jan-07 2:48 
AnswerRe: ToolBoxBitmap Pin
Fabio Zanetta15-Jan-07 3:26
Fabio Zanetta15-Jan-07 3:26 
GeneralRe: ToolBoxBitmap Pin
aSarafian15-Jan-07 5:09
aSarafian15-Jan-07 5:09 
GeneralRe: ToolBoxBitmap Pin
Fabio Zanetta15-Jan-07 5:19
Fabio Zanetta15-Jan-07 5:19 
Questionpaint on ListView isn't working Pin
teejayem15-Jan-07 2:41
teejayem15-Jan-07 2:41 
AnswerRe: web service Pin
Guffa15-Jan-07 2:37
Guffa15-Jan-07 2:37 
QuestionI can not open new form.It gives errors in vs 2005 Pin
Member 372644115-Jan-07 1:53
Member 372644115-Jan-07 1:53 
GeneralRe: I can not open new form.It gives errors in vs 2005 Pin
Seishin#15-Jan-07 2:04
Seishin#15-Jan-07 2:04 
Questionmultithreading problem Pin
justintimberlake15-Jan-07 1:51
justintimberlake15-Jan-07 1:51 
AnswerRe: multithreading problem Pin
Russell Jones15-Jan-07 2:47
Russell Jones15-Jan-07 2:47 
AnswerRe: multithreading problem Pin
coolestCoder15-Jan-07 3:34
coolestCoder15-Jan-07 3:34 

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.