Click here to Skip to main content
15,944,397 members
Home / Discussions / C#
   

C#

 
GeneralRe: Read width and height of jpeg file Pin
Luc Pattyn1-Jul-07 22:09
sitebuilderLuc Pattyn1-Jul-07 22:09 
Hi,

the FF-check is for protection (I want the code to fail on something that isnt a
JPEG at all!); so far all valid packets have a two-byte code that looks like 0xFFXX,
and my code did return as soon as size was seen; you should not continue
scanning the file after that ! (typically the size info is in the first few % of the file,
and the scanner as is probably is unable to handle everything that might follow it).

If there is any more trouble, please publish the entire method again. If you think there
are some valid JPEG files that my code does not handle well, then mail me one or two of them.

Smile | :)




GeneralRe: Read width and height of jpeg file Pin
Alaric_2-Jul-07 9:51
professionalAlaric_2-Jul-07 9:51 
Questionhexadecimal compare ? Pin
B.A30-Jun-07 20:49
B.A30-Jun-07 20:49 
AnswerRe: hexadecimal compare ? Pin
B.A30-Jun-07 21:12
B.A30-Jun-07 21:12 
AnswerRe: hexadecimal compare ? Pin
Guffa30-Jun-07 21:27
Guffa30-Jun-07 21:27 
QuestionLibrary management system Pin
Diana181130-Jun-07 18:05
Diana181130-Jun-07 18:05 
AnswerRe: Library management system Pin
zeeShan anSari30-Jun-07 20:01
zeeShan anSari30-Jun-07 20:01 
AnswerRe: Library management system Pin
Alaric_1-Jul-07 6:43
professionalAlaric_1-Jul-07 6:43 
QuestionGiving an object multiple enumerator types Pin
Rareed30-Jun-07 15:16
Rareed30-Jun-07 15:16 
AnswerRe: Giving an object multiple enumerator types Pin
Christian Graus30-Jun-07 15:27
protectorChristian Graus30-Jun-07 15:27 
GeneralRe: Giving an object multiple enumerator types Pin
Rareed30-Jun-07 15:32
Rareed30-Jun-07 15:32 
GeneralRe: Giving an object multiple enumerator types Pin
Christian Graus30-Jun-07 15:58
protectorChristian Graus30-Jun-07 15:58 
GeneralRe: Giving an object multiple enumerator types Pin
Rareed30-Jun-07 16:09
Rareed30-Jun-07 16:09 
GeneralRe: Giving an object multiple enumerator types Pin
Christian Graus30-Jun-07 16:26
protectorChristian Graus30-Jun-07 16:26 
GeneralRe: Giving an object multiple enumerator types Pin
Rareed30-Jun-07 16:32
Rareed30-Jun-07 16:32 
GeneralRe: Giving an object multiple enumerator types Pin
Robert Rohde1-Jul-07 2:56
Robert Rohde1-Jul-07 2:56 
QuestionSave data into a .dat file Pin
atlasliu30-Jun-07 14:44
atlasliu30-Jun-07 14:44 
AnswerRe: Save data into a .dat file Pin
Luc Pattyn30-Jun-07 14:59
sitebuilderLuc Pattyn30-Jun-07 14:59 
QuestionImage Processing using C# Pin
marwa wael30-Jun-07 7:04
marwa wael30-Jun-07 7:04 
AnswerRe: Image Processing using C# Pin
zeeShan anSari30-Jun-07 9:01
zeeShan anSari30-Jun-07 9:01 
QuestionImageprocessing:Draw and Save the drawing Pin
zeeShan anSari30-Jun-07 6:34
zeeShan anSari30-Jun-07 6:34 
AnswerRe: Imageprocessing:Draw and Save the drawing Pin
Guffa30-Jun-07 6:49
Guffa30-Jun-07 6:49 
AnswerRe: Imageprocessing:Draw and Save the drawing Pin
zeeShan anSari30-Jun-07 8:54
zeeShan anSari30-Jun-07 8:54 
GeneralRe: Imageprocessing:Draw and Save the drawing Pin
Christian Graus30-Jun-07 10:39
protectorChristian Graus30-Jun-07 10:39 
AnswerRe: Imageprocessing:Draw and Save the drawing Pin
Guffa30-Jun-07 11:34
Guffa30-Jun-07 11: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.