I surfed google very much for days to get an answer for a below query. I would highly appreciate if any can help me to come out of this problem.
We have Different types of files stored in an Image Datatype column in sql server as a byte array but we dnt have an extension of that file. I have to print all records files which are saved as a byte array in an image data type if they satisfied a condition. My problem is to achieve this functionality and for that I am looking for a solution like if there is any way by which can do following stuff.
1) If I can directly send bytes array to a printer.
2) If I can convert bytes array of all records to a pdf file and than send this generated pdf to a printer.
3) The solutions I found on google works only if I know file type of that bytes but there is no way to get a file type of those bytes.
4) I passed through lot of forums and examples but none of them are working.
I am very much thankful to you for reading out.
Thanks and Regards,