Get width and height of JPG-image from database
Posted on 2010-08-26
Database field "Photo" contains a JPG-image (SQL Server 2008).
Field Photo's fieldtype = "Image"
Now I want to get the width and height of the stored image.
if Photo = NULL it will be: width = 0 and height = 0
else the actual width and height will be returned.
I prefer not to save the image to a file/stream, or place it in a TImage first. Unless there is no other possibility.