By "image type", do you just mean that it's a SQL image column (rather than varchar() or int or other column type)? If so, you still have to know what the data being stored in there is (e.g. TIF, JPG, PDF, etc.). If the content in that column didn't come from a valid PDF, then you can't write it to a file and expect it to be a valid PDF.
-Carl V.