Click here to Skip to main content
15,895,667 members
Home / Discussions / C#
   

C#

 
Questionproblem regarding update the image Pin
sadia12314-Feb-09 3:18
sadia12314-Feb-09 3:18 
AnswerRe: problem regarding update the image Pin
Deresen14-Feb-09 3:33
Deresen14-Feb-09 3:33 
GeneralRe: problem regarding update the image Pin
sadia12315-Feb-09 1:14
sadia12315-Feb-09 1:14 
GeneralRe: problem regarding update the image Pin
Deresen15-Feb-09 1:49
Deresen15-Feb-09 1:49 
GeneralRe: problem regarding update the image Pin
sadia12318-Feb-09 20:40
sadia12318-Feb-09 20:40 
QuestionMysql problem with inserting a blob Pin
hendrik14-Feb-09 2:29
hendrik14-Feb-09 2:29 
AnswerRe: Mysql problem with inserting a blob Pin
ABitSmart14-Feb-09 4:03
ABitSmart14-Feb-09 4:03 
GeneralRe: Mysql problem with inserting a blob Pin
hendrik14-Feb-09 4:56
hendrik14-Feb-09 4:56 
Thanks for the fead back i have implemented like you show still
no image gets saved to the blob field
void t(MemoryStream msI)
{
        string query;
	query ="insert into testimage (id_image,pic) values('t', @pic)";
        BinaryReader oReader = new BinaryReader(msI);
        System.Data.Odbc.OdbcCommand  cmd = new System.Data.Odbc.OdbcCommand(query,OdbcCon );
	//cmd.Parameters.AddWithValue("@pic",oReader.ReadBytes((int)msI.Length));
        cmd.Parameters.Add("@pic", System.Data.DbType.Byte);
	cmd.Parameters["@pic"].Value = oReader.ReadBytes((int)msI.Length);
	cmd.Prepare();
        cmd.ExecuteNonQuery();
        MessageBox.Show("Image Added");
}

Note That msI does have a image in it
Thanks any other ideas will help a lot
GeneralRe: Mysql problem with inserting a blob Pin
ABitSmart14-Feb-09 5:10
ABitSmart14-Feb-09 5:10 
GeneralRe: Mysql problem with inserting a blob [modified] Pin
hendrik14-Feb-09 6:37
hendrik14-Feb-09 6:37 
AnswerRe: Mysql problem with inserting a blob Pin
Luc Pattyn14-Feb-09 5:17
sitebuilderLuc Pattyn14-Feb-09 5:17 
Answer? Pin
Luc Pattyn14-Feb-09 7:44
sitebuilderLuc Pattyn14-Feb-09 7:44 
GeneralRe: ? Pin
hendrik14-Feb-09 8:39
hendrik14-Feb-09 8:39 
AnswerRe: ? Pin
Luc Pattyn14-Feb-09 9:53
sitebuilderLuc Pattyn14-Feb-09 9:53 
JokeRe: ? Pin
hendrik14-Feb-09 18:26
hendrik14-Feb-09 18:26 
QuestionTableLayoutPanel Pin
Silvyster14-Feb-09 1:33
Silvyster14-Feb-09 1:33 
AnswerRe: TableLayoutPanel Pin
usermans14-Feb-09 2:10
usermans14-Feb-09 2:10 
QuestionRTSP/SDP - defining mp3 format? Pin
Vicer14-Feb-09 1:26
Vicer14-Feb-09 1:26 
QuestionDataGridView, Checkbox Column, Sorting [modified] Pin
usermans14-Feb-09 0:59
usermans14-Feb-09 0:59 
QuestionColorizing listview rows according to value Pin
kanchoette14-Feb-09 0:34
kanchoette14-Feb-09 0:34 
AnswerRe: Colorizing listview rows according to value Pin
usermans14-Feb-09 1:35
usermans14-Feb-09 1:35 
Questionneed help with graphics Pin
Mubeen.asim13-Feb-09 23:59
Mubeen.asim13-Feb-09 23:59 
AnswerRe: need help with graphics Pin
Calin Tatar14-Feb-09 2:42
Calin Tatar14-Feb-09 2:42 
GeneralRe: need help with graphics Pin
Mubeen.asim14-Feb-09 7:55
Mubeen.asim14-Feb-09 7:55 
QuestionHow to run WS in Win server 2003 Pin
E_Gold13-Feb-09 21:14
E_Gold13-Feb-09 21:14 

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.