Re: Files locked after encryption, until objects d - WeOnlyDo Discussion board

Re: Files locked after encryption, until objects d (General questions)

by wodDamir, Thursday, January 12, 2012, 17:00 (4488 days ago) @ DanCooperstock

Dan,


I just tried the following:

[code]Dim srcfile As New FileBlob
Dim destfile As New FileBlob

srcfile.FileName = H:vmwareFile1.txt
destfile.FileName = H:vmwareFileOut.zip

wodCrypt1.Type = Blowfish
wodCrypt1.SecretKey = Now
wodCrypt1.Compression = GZipCompression
wodCrypt1.Optimized = False
wodCrypt1.Encrypt srcfile, destfile[/code]

Once it was done encrypting, I tried deleting both files, and it succeeded.

However, blob objects should be destroyed or set to when done using them. You can always recreate them later.

Regards,
Damba


Complete thread: