This project is read-only.

Varchar(Max) - newbie question

Jun 18, 2011 at 12:18 AM

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.



Jun 19, 2011 at 9: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