Getting field type from database
-
How can I detect whether a certain field retrieved from the database contains an image or other type of blob? I have a MSAccess table with an OLE-Object field holding a bitmap. This field is added to the DataTable as an System.Byte[] type. How do I know whether this field actually holds an bitmap? Thanks for any help you can give. Regards, Kees Vermeulen
-
How can I detect whether a certain field retrieved from the database contains an image or other type of blob? I have a MSAccess table with an OLE-Object field holding a bitmap. This field is added to the DataTable as an System.Byte[] type. How do I know whether this field actually holds an bitmap? Thanks for any help you can give. Regards, Kees Vermeulen
The only way you can get this info is by inspecting the data in the field. You can either extract it and try to load it into an image or you can read the header bytes to see if they conform to known types.
Deja View - the feeling that you've seen this post before.
-
The only way you can get this info is by inspecting the data in the field. You can either extract it and try to load it into an image or you can read the header bytes to see if they conform to known types.
Deja View - the feeling that you've seen this post before.