I have a program that I developed that builds an XML file that stores base64binary data from images stored in SQL Server. The XML file along with the schema get transfered, then another program picks them up and uses the SQLXMLBULKLOADL ib to insert the XML data based mapped with a Schema file back into SQL Server.
The problem is that when it imports it into SQL Server, it creates a varbinary(8000) data type instead of varbinary(MAX) data type. It is cutting off some of my data and thus my images will not show up on the website. How do I get it to create the table with varbinary(MAX)?
Help?
Below is example of my schema file:
<xs:schema id="ROOT" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="u rn:schemas-microsoft-com:xml-msdata">
<xs:element name="tblBioApp roved">
<xs:complexType >
<xs:attribute name="BioPictur eA" type="xs:base64 Binary" />
<xs:attribute name="BioPictur eTypeA" type="xs:string " />
</xs:complexType>
</xs:element>
</xs:schema>
The problem is that when it imports it into SQL Server, it creates a varbinary(8000) data type instead of varbinary(MAX) data type. It is cutting off some of my data and thus my images will not show up on the website. How do I get it to create the table with varbinary(MAX)?
Help?
Below is example of my schema file:
<xs:schema id="ROOT" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="u rn:schemas-microsoft-com:xml-msdata">
<xs:element name="tblBioApp roved">
<xs:complexType >
<xs:attribute name="BioPictur eA" type="xs:base64 Binary" />
<xs:attribute name="BioPictur eTypeA" type="xs:string " />
</xs:complexType>
</xs:element>
</xs:schema>
Comment