I am using pymssql in python to get large blobs containing files but when I get the date it is trauncated to 4k.
Code referenced

cursor.execute ("select fileid,filename,filecont from trkfile")
row = cursor.fetchone()
attach = open("outfile"+str(row[0]),"wb")
attach.write(row[2])