Problem with Image Loading - WeOnlyDo Discussion board

Problem with Image Loading (General questions)

by Maverick5, Wednesday, May 17, 2006, 03:26 (6765 days ago)

How do I get an image to load after decrypting it to a memblob ?
here is where I am right now:

Dim crypt As New wodCryptCom
crypt.LicenseKey = ****-****-****-****
crypt.Optimized = False
Dim in_blob As New MemBlob
Dim out_blob As New MemBlob
crypt.Type = CryptoTypes.AES256
crypt.SecretKey = Key_tb.Text
in_blob.FromFile(curFilePath)
crypt.Decrypt(in_blob, out_blob )
Dim Img As Image
Img = Image.FromStream(out_blob )
PictureBox1.Image = Img

I don't understand why this doesn't work,

any help would be appreciated,
Thanks,
[:wink:]


Complete thread: