To separate attachment from other data in SQL server. The script converts byte array to specific file.