﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » Updates and Information » StrataFrame Users Contributed Samples  » Encrypting and Decrypting PDF files to and from a varbinary(MAX) table field.</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 02:03:22 GMT</lastBuildDate><ttl>20</ttl><item><title>Encrypting and Decrypting PDF files to and from a varbinary(MAX) table field.</title><link>http://forum.strataframe.net/FindPost27177.aspx</link><description>To test it, I created a varbinary(MAX) in the Customer table of the&amp;nbsp;StrataFrameSample database (cust_Bin) and used it to store a .pdf file (you will find it in the project folder itself) called TestPDF.pdf. &lt;/P&gt;&lt;P&gt;There are two buttons, one encrypt the file and save it to&amp;nbsp;the BO. The other reads the contents&amp;nbsp;from the BO and creates a file on the Desktop (change the line where the FileStream is created to address your Desktop).</description><pubDate>Fri, 21 May 2010 14:52:21 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Encrypting and Decrypting PDF files to and from a varbinary(MAX) table field.</title><link>http://forum.strataframe.net/FindPost27209.aspx</link><description>Glad to help y'all. :hehe:</description><pubDate>Fri, 21 May 2010 14:52:21 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Encrypting and Decrypting PDF files to and from a varbinary(MAX) table field.</title><link>http://forum.strataframe.net/FindPost27185.aspx</link><description>Yes. Thanks for the example.</description><pubDate>Thu, 20 May 2010 08:30:03 GMT</pubDate><dc:creator>Russell Scott Brown</dc:creator></item><item><title>RE: Encrypting and Decrypting PDF files to and from a varbinary(MAX) table field.</title><link>http://forum.strataframe.net/FindPost27184.aspx</link><description>Hi Ivan,&lt;br&gt;
&lt;br&gt;
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:&lt;br&gt;
&lt;br&gt;
Thanks again!</description><pubDate>Thu, 20 May 2010 07:56:45 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>