Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
GeneralRe: Wrong select query SQLite? Pin
DPaul199421-Apr-15 0:26
DPaul199421-Apr-15 0:26 
GeneralRe: Wrong select query SQLite? Pin
DPaul199420-Apr-15 20:44
DPaul199420-Apr-15 20:44 
GeneralRe: Wrong select query SQLite? Pin
Garth J Lancaster20-Apr-15 21:08
professionalGarth J Lancaster20-Apr-15 21:08 
GeneralRe: Wrong select query SQLite? Pin
DPaul199421-Apr-15 0:26
DPaul199421-Apr-15 0:26 
GeneralRe: Wrong select query SQLite? Pin
Richard Deeming21-Apr-15 2:30
mveRichard Deeming21-Apr-15 2:30 
QuestionHi! Pin
Member King Fisher20-Apr-15 17:51
Member King Fisher20-Apr-15 17:51 
SuggestionRe: Hi! Pin
Richard MacCutchan20-Apr-15 21:28
mveRichard MacCutchan20-Apr-15 21:28 
QuestionEmpty path name is not legal Pin
DPaul199420-Apr-15 10:12
DPaul199420-Apr-15 10:12 
I want to insert an image in database. But if I don't choose any image, I receive : Empty path name is not legal. In database, image field is BLOB and is null. Where is my mistake cause I can't figure it out..I think that I should verify if textBox5 is null and if is, imageBt=null. I tried this but it didn't worked. This is the code that I'm using to insert the image:
C#
byte[] imageBt = null;
                   FileStream fstream = new FileStream(this.textBox5.Text, FileMode.Open, FileAccess.Read);
                   BinaryReader br = new BinaryReader(fstream);
                   imageBt = br.ReadBytes((int)fstream.Length);
                   SQLiteCommand com = new SQLiteCommand("insert into questions(image) values(@IMG)", Conexiune.getConnection());
                   com.Parameters.Add(new SQLiteParameter("@IMG", imageBt));
                   com.ExecuteNonQuery();

AnswerRe: Empty path name is not legal Pin
Sascha Lefèvre20-Apr-15 10:18
professionalSascha Lefèvre20-Apr-15 10:18 
GeneralRe: Empty path name is not legal Pin
DPaul199420-Apr-15 10:27
DPaul199420-Apr-15 10:27 
GeneralRe: Empty path name is not legal Pin
Sascha Lefèvre20-Apr-15 10:35
professionalSascha Lefèvre20-Apr-15 10:35 
GeneralRe: Empty path name is not legal Pin
DPaul199420-Apr-15 10:50
DPaul199420-Apr-15 10:50 
GeneralRe: Empty path name is not legal Pin
Sascha Lefèvre20-Apr-15 10:59
professionalSascha Lefèvre20-Apr-15 10:59 
GeneralRe: Empty path name is not legal Pin
dhivya.sakthi21-Apr-15 23:50
dhivya.sakthi21-Apr-15 23:50 
AnswerRe: Empty path name is not legal Pin
Pete O'Hanlon20-Apr-15 10:21
mvePete O'Hanlon20-Apr-15 10:21 
GeneralRe: Empty path name is not legal Pin
DPaul199420-Apr-15 10:27
DPaul199420-Apr-15 10:27 
GeneralRe: Empty path name is not legal Pin
Pete O'Hanlon20-Apr-15 10:46
mvePete O'Hanlon20-Apr-15 10:46 
GeneralRe: Empty path name is not legal Pin
DPaul199420-Apr-15 10:50
DPaul199420-Apr-15 10:50 
QuestionAny rules how to name C# source files? Pin
CRobert45620-Apr-15 5:50
CRobert45620-Apr-15 5:50 
AnswerRe: Any rules how to name C# source files? Pin
Sascha Lefèvre20-Apr-15 5:59
professionalSascha Lefèvre20-Apr-15 5:59 
AnswerRe: Any rules how to name C# source files? Pin
Pete O'Hanlon20-Apr-15 7:01
mvePete O'Hanlon20-Apr-15 7:01 
AnswerRe: Any rules how to name C# source files? Pin
Eddy Vluggen20-Apr-15 8:11
professionalEddy Vluggen20-Apr-15 8:11 
AnswerRe: Any rules how to name C# source files? Pin
Dennis_E20-May-15 3:01
professionalDennis_E20-May-15 3:01 
QuestionButton enabled and disable using EnabledChanged method Pin
DPaul199420-Apr-15 4:34
DPaul199420-Apr-15 4:34 
AnswerRe: Button enabled and disable using EnabledChanged method Pin
Pete O'Hanlon20-Apr-15 4:47
mvePete O'Hanlon20-Apr-15 4:47 

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.