i am using a sql table name: gallery
f_content is "varbinary(max)
i try to upload(pdf,doc, image) file into this.. field(f_content)
i used php and read the file and its in binary finally i insert the data into table by CAST($filecontent AS VARBINARY(MAX));
and its stored in database with some "
0x3F3F113F1A3F5C305C" this binary data
then when i trying reterive the file its not open poperly..it contain some '\0' contents alone..
so can any one plz tell me "how to insert the binary data into varbinary(max) datatype and how to reterive it..
Thanks in advance
View Complete Post