Click here to Skip to main content
15,891,828 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to "inject" string Pin
Philippe Mori2-Jul-11 12:37
Philippe Mori2-Jul-11 12:37 
AnswerRe: how to "inject" string Pin
#realJSOP3-Jul-11 5:59
mve#realJSOP3-Jul-11 5:59 
AnswerRe: how to "inject" string Pin
Shameel3-Jul-11 8:34
professionalShameel3-Jul-11 8:34 
Questionms access afterupdate event in c# textbox Pin
Asif Rehman1-Jul-11 23:34
Asif Rehman1-Jul-11 23:34 
AnswerRe: ms access afterupdate event in c# textbox Pin
JOAT-MON2-Jul-11 3:12
JOAT-MON2-Jul-11 3:12 
AnswerRe: ms access afterupdate event in c# textbox Pin
JOAT-MON2-Jul-11 3:26
JOAT-MON2-Jul-11 3:26 
QuestionFile Type forensic identification Pin
devvvy1-Jul-11 14:20
devvvy1-Jul-11 14:20 
AnswerRe: File Type forensic identification Pin
Philippe Mori1-Jul-11 14:58
Philippe Mori1-Jul-11 14:58 
For each type of file, the validation would be different. Thus it cannot be done in a generic way.

Many file types do have a signature that could be checked (http://www.garykessler.net/library/file_sigs.html[^]).

Also so file format are based on other file format like an xlsx file is based on a zip file with some specific content.

Also for some file type some statistics could be used... or some patterns could be found in the file.

Generally, you won't really validate a file... You will try to open it using appropriate library and assumes the file is good if it can be opened and used.

Some file might also have a checksum to validate it or might contain information related to its length. A wave file for example would have the number of sample (or something like that) in it header. That information with other information like the number of channel and the bit depth would allows to validate that the length of the file match (maybe rounded up a bit) with that value.
Philippe Mori

AnswerRe: File Type forensic identification Pin
PIEBALDconsult1-Jul-11 18:51
mvePIEBALDconsult1-Jul-11 18:51 
QuestionImplementing a list of abstract objects... Pin
faheemnadeem1-Jul-11 10:15
faheemnadeem1-Jul-11 10:15 
AnswerRe: Implementing a list of abstract objects... Pin
Philippe Mori1-Jul-11 11:37
Philippe Mori1-Jul-11 11:37 
GeneralRe: Implementing a list of abstract objects... Pin
faheemnadeem1-Jul-11 13:52
faheemnadeem1-Jul-11 13:52 
GeneralRe: Implementing a list of abstract objects... Pin
Philippe Mori1-Jul-11 15:16
Philippe Mori1-Jul-11 15:16 
GeneralRe: Implementing a list of abstract objects... Pin
faheemnadeem1-Jul-11 15:41
faheemnadeem1-Jul-11 15:41 
GeneralRe: Implementing a list of abstract objects... Pin
Philippe Mori1-Jul-11 16:30
Philippe Mori1-Jul-11 16:30 
GeneralRe: Implementing a list of abstract objects... Pin
faheemnadeem1-Jul-11 18:09
faheemnadeem1-Jul-11 18:09 
GeneralRe: Implementing a list of abstract objects... Pin
Philippe Mori2-Jul-11 3:30
Philippe Mori2-Jul-11 3:30 
GeneralRe: Implementing a list of abstract objects... Pin
faheemnadeem2-Jul-11 4:08
faheemnadeem2-Jul-11 4:08 
QuestionC# to MATLAB connectivity in windows 7 Pin
Sa na1-Jul-11 9:03
Sa na1-Jul-11 9:03 
AnswerRe: C# to MATLAB connectivity in windows 7 Pin
Dave Kreskowiak1-Jul-11 11:10
mveDave Kreskowiak1-Jul-11 11:10 
GeneralRe: C# to MATLAB connectivity in windows 7 Pin
Sa na2-Jul-11 1:13
Sa na2-Jul-11 1:13 
GeneralRe: C# to MATLAB connectivity in windows 7 Pin
Sa na2-Jul-11 2:52
Sa na2-Jul-11 2:52 
QuestionIs file mapping supported in microsoft .net framework Pin
Danzy831-Jul-11 5:26
Danzy831-Jul-11 5:26 
AnswerRe: Is file mapping supported in microsoft .net framework Pin
Ennis Ray Lynch, Jr.1-Jul-11 6:06
Ennis Ray Lynch, Jr.1-Jul-11 6:06 
QuestionHow do I monitor bytes per second written or read from a directory (and sub-directories)? Pin
bbranded1-Jul-11 5:16
bbranded1-Jul-11 5:16 

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.