Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: How can I validate a picture using VB/VBScript?


Message #1 by "Yoel Pedersen" <y.pedersen@g...> on Mon, 19 Feb 2001 09:46:34
> How can I ensure that a file with the extension .jpg or .gif 
> really IS a 
> picture, and not just a random file that has been renamed?

goto http://abstractvb.com/code.asp?CID=30
you'll find the code to extract the header info from a jpeg, you should be
able to use this to verify that it has at least a valid header and so can be
displayed...and for gifs try http://abstractvb.com/code.asp?CID=29

k

  Return to Index