M
Marc Scheuner [MVP ADSI]
Folks,
I'd like to be able to read and display graphics stored inside an
IMAGE field in SQL Server.
How to read that stream of bytes is not the problem - but how can I
determine what kind of image I'm dealing with?? Is there some kind of
a "signature" or "magic byte mark" at the beginning to the data stream
to tell me if it's a GIF, a BMP, a JPG, or a PNG (or whatever else it
might have been) ? Since I don't have any file extensions or any other
information, I can only rely on the actual data stream itself....
Any thoughts, ideas, hints?? Thanks!!
Marc
================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
I'd like to be able to read and display graphics stored inside an
IMAGE field in SQL Server.
How to read that stream of bytes is not the problem - but how can I
determine what kind of image I'm dealing with?? Is there some kind of
a "signature" or "magic byte mark" at the beginning to the data stream
to tell me if it's a GIF, a BMP, a JPG, or a PNG (or whatever else it
might have been) ? Since I don't have any file extensions or any other
information, I can only rely on the actual data stream itself....
Any thoughts, ideas, hints?? Thanks!!
Marc
================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch