Results 1 to 3 of 3

Thread: BAD File Format

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2000
    Location
    Jacksonville
    Posts
    23

    Arrow

    Is there a way in VB or an API which could check the if the file is corrupted?
    I have some .pdf files which I need to check through my program if they are corrupted.
    I tried ShellExecute it didn't work.

  2. #2
    Lively Member
    Join Date
    Aug 2000
    Location
    quebec
    Posts
    81

    Cool

    If the corruption is disk I/O then it should show up when you attempt an open.

    But, if the corruption is in a file format error then you
    have to be able to open the file as a binary stream and
    check the file header which usually contains format info.

    This means you have to know what it should look like and be
    able to respond when it "looks" wrong.

    Check Adobe site on PDF format for this file type's details.
    C/C++,Delphi,VB6,Java,PB (blech!),ASP,JSP,SQL...bla bla bla and bla
    I love deadlines. I like the whooshing sound they make as they fly by.
    —Douglas Adams

  3. #3
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width