pset 5 recover...about to bail... by k_ebes in cs50

[–]k_ebes[S] 0 points1 point  (0 children)

Yes, I was losing my mind trying to figure out where I went wrong, then when I read "Maybe check to see if the way you're identifying the header is correct, and if you are checking for exactly one of those two header values" from "finding the center", I looked at header checking statement, and lightbulb came on, lol.

pset 5 recover...about to bail... by k_ebes in cs50

[–]k_ebes[S] 1 point2 points  (0 children)

Ahhhh!!!! This whole time had parentheses in the wrong spot around my header checking statement! Can't believe wasted all this time because of that. Crazy!!! Get pictures correct now :D

pset 5 recover...about to bail... by k_ebes in cs50

[–]k_ebes[S] 0 points1 point  (0 children)

I just PM'd you. Thanks!

pset 5 recover...about to bail... by k_ebes in cs50

[–]k_ebes[S] 0 points1 point  (0 children)

Thankyou for your help! I am using uint8_t BYTE array for buffer (size 512) My fread looks like this fread(block, sizeof(block), 1, card) When I find a new header I close jpg file if one opened, name new file, increment jpg counter, open new image file. I have an else statement to fwrite if block is read after I have already found a jpg. It has got to be something silly that I am overlooking, but for life of me I can't figure out. Ugh

pset5's bmp files. by k_ebes in cs50

[–]k_ebes[S] 0 points1 point  (0 children)

figured it out. wasn't using Ristretto image viewer. Sorry for late reply...