StrataFrame Forum

Encrypting and Decrypting PDF files to and from a varbinary(MAX) table field.

http://forum.strataframe.net/Topic27177.aspx

By Ivan George Borges - 5/19/2010

To test it, I created a varbinary(MAX) in the Customer table of the StrataFrameSample database (cust_Bin) and used it to store a .pdf file (you will find it in the project folder itself) called TestPDF.pdf.

There are two buttons, one encrypt the file and save it to the BO. The other reads the contents from the BO and creates a file on the Desktop (change the line where the FileStream is created to address your Desktop).

By Edhy Rijo - 5/20/2010

Hi Ivan,



I have not been able to see/test this sample, but thanks for posting it, this is something I will start using soon, in fact I am doing something similar saving big text files but without compression, even though I tried, but was not working properly I hope your sample will help me see where I was short Hehe



Thanks again!
By Russell Scott Brown - 5/20/2010

Yes. Thanks for the example.
By Ivan George Borges - 5/21/2010

Glad to help y'all. Hehe