Click here to Skip to main content
15,906,816 members
Home / Discussions / C#
   

C#

 
GeneralRe: Save Images in SQl Server Pin
sigridslima15-Sep-13 14:57
sigridslima15-Sep-13 14:57 
GeneralRe: Save Images in SQl Server Pin
PIEBALDconsult15-Sep-13 16:26
mvePIEBALDconsult15-Sep-13 16:26 
GeneralRe: Save Images in SQl Server Pin
sigridslima16-Sep-13 2:55
sigridslima16-Sep-13 2:55 
GeneralRe: Save Images in SQl Server Pin
PIEBALDconsult16-Sep-13 3:47
mvePIEBALDconsult16-Sep-13 3:47 
GeneralRe: Save Images in SQl Server Pin
sigridslima16-Sep-13 5:21
sigridslima16-Sep-13 5:21 
GeneralRe: Save Images in SQl Server Pin
PIEBALDconsult16-Sep-13 13:37
mvePIEBALDconsult16-Sep-13 13:37 
GeneralRe: Save Images in SQl Server Pin
sigridslima16-Sep-13 14:35
sigridslima16-Sep-13 14:35 
AnswerRe: Save Images in SQl Server Pin
OriginalGriff14-Sep-13 22:17
mveOriginalGriff14-Sep-13 22:17 
As PIEBALDconsult says, you shouldn't even think about concatenating strings to form an SQL command - not only does it leave you vulnerable to SQL Injection attacks which could damage or destriy your database, it also causes significant problems with Images as well.

See here: Why do I get a "Parameter is not valid." exception when I read an image from my database?[^] - it explains why it's a problem and how to save and reload the image properly.
This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre.
Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

QuestionC# Application - SQL Syntax Problem Pin
Member 1026694314-Sep-13 16:34
Member 1026694314-Sep-13 16:34 
AnswerRe: C# Application - SQL Syntax Problem Pin
PIEBALDconsult14-Sep-13 17:17
mvePIEBALDconsult14-Sep-13 17:17 
GeneralRe: C# Application - SQL Syntax Problem Pin
Member 1026694315-Sep-13 11:03
Member 1026694315-Sep-13 11:03 
AnswerRe: C# Application - SQL Syntax Problem Pin
Dave Kreskowiak14-Sep-13 19:12
mveDave Kreskowiak14-Sep-13 19:12 
QuestionGet the value of RepositoryItemPictureEdit in GridControl Pin
nhanlaptrinh14-Sep-13 9:26
nhanlaptrinh14-Sep-13 9:26 
AnswerRe: Get the value of RepositoryItemPictureEdit in GridControl Pin
Richard MacCutchan14-Sep-13 21:45
mveRichard MacCutchan14-Sep-13 21:45 
QuestionDLLIMPORT - SENDMESSAGE Pin
M Riaz Bashir14-Sep-13 5:01
M Riaz Bashir14-Sep-13 5:01 
AnswerRe: DLLIMPORT - SENDMESSAGE Pin
Richard MacCutchan14-Sep-13 5:42
mveRichard MacCutchan14-Sep-13 5:42 
AnswerRe: DLLIMPORT - SENDMESSAGE Pin
TnTinMn14-Sep-13 8:39
TnTinMn14-Sep-13 8:39 
QuestionHelp Regarding Source Code Of Meshack Pin
Caiser Mahmood13-Sep-13 23:34
Caiser Mahmood13-Sep-13 23:34 
AnswerRe: Help Regarding Source Code Of Meshack Pin
Abhinav S14-Sep-13 0:51
Abhinav S14-Sep-13 0:51 
GeneralRe: Help Regarding Source Code Of Meshack Pin
Richard MacCutchan14-Sep-13 1:17
mveRichard MacCutchan14-Sep-13 1:17 
QuestionHow can I change "zoom" value in print preview dialog ? Pin
babak1413-Sep-13 21:51
babak1413-Sep-13 21:51 
AnswerRe: How can I change "zoom" value in print preview dialog ? Pin
Abhinav S13-Sep-13 22:18
Abhinav S13-Sep-13 22:18 
GeneralRe: How can I change "zoom" value in print preview dialog ? Pin
babak1413-Sep-13 22:30
babak1413-Sep-13 22:30 
QuestionHow can I maximize print preview dialog ? Pin
babak1413-Sep-13 21:46
babak1413-Sep-13 21:46 
Questionembedding external application into from panel Pin
eng.iris13-Sep-13 13:11
eng.iris13-Sep-13 13:11 

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.