摘要: I am storing an ammount of files, of different types, as BLOBs in my Sql Server 2000 database.Some of these are XML files, inside of which are some addresses I'd like to read.However, I don't want to download a 2MB JPG image from the db, just to find out it isn't an XML file!My best solution after playing around was to extract the first 5 bytes from the data, to determine if I should go ahead and use the whole thing.
阅读全文