Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: how do i validate a picture by VB/vbscript?


Message #1 by "tumili" <cantonai@y...> on Mon, 20 Aug 2001 11:03:43
Sorry I can't answer your question directly but if you try
http://vbaccelerator.com and search on 'JPG' you'll find an artical that
uses an Intel DLL that manipulates JPEG's, with the correct error trapping
you should be able to accomplish what your looking for.

HTH
Mike

-----Original Message-----
From: tumili [mailto:cantonai@y...]
Sent: 20 August 2001 12:04
To: professional vb
Subject: [pro_vb] how do i validate a picture by VB/vbscript?


please help me..
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?
We have a web page that grabs some pictures from the hard disks of the 
clients' machines, and we'll have to ensure that it really is a picture - 
otherwise another page at the site won't display the picture and generates 
an error instead saying "Type mismatch".
Any help is appreciated.

Sincerely,
t

  Return to Index