Varchar(Max) - newbie question

Jun 17, 2011 at 11:18 PM

I'm doing a little prototype, and simply stored my XPS document in a Varchar(MAX) field... probably not the best choice, as I should likely Zip the contents to save space

Is there an example that simply loads the IPackageReader to read from a text field - should that not be simple?

I see however that there are only a couple of package readers - surely somebody created one to read data from a varchar field?

I'm going to try, but I thought I would throw this out there to see what comes of it.

thanks,

R

Coordinator
Jun 19, 2011 at 8:07 PM

Hi R,

Please note that Document Toolkit is built using Silverlight, which is a client-side technology. In Silverlight you do not have direct access to SQL db, they usually reside on the server. What you problably want is some server-side code to retrieve your document from the database and then sent it over HTTP to the Silverlight client. See also the sample How To Load Documents From The Web.


Hope this helps

- Koen