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


Encrypting and Decrypting PDF files to and from a varbinary(MAX) table...
Author
Message
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
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).

Attachments
EncryptDecryptSample.zip (285 views, 1,001.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search