Hi Softanics Site Admin,
I have a question when I try to load the decrypted file stream by PutMovieFromStream() method. The code sample are as follows.
Code Sample:
----------------------------------------------------------------------------
'119.enc is the encrypted file
Dim swfStream As System.IO.Stream = New System.IO.FileStream("119.enc", IO.FileMode.Open, IO.FileAccess.ReadWrite)
' Decrypt the file.
Dim decryptedSwfStream As System.IO.Stream = DecryptFile(swfStream)
FlashPlayerControl1.PutMovieFromStream(decryptedSwfStream)
FlashPlayerControl1.FlashMethod_Play()
----------------------------------------------------------------------------
The DecryptFile Function actually takes the encrypted file stream and do some jobs on decryption and assign the decrypted stream to a newly created System.io.MemoryStream(). Then return the result as decryptedSwfStream and let the FlashPlayControl to load it by PutMovieFromStream().
Finally, the outcome is failed. I can sure that everything done on the decryption process is correct. Do you have any solution?
Thx a lot!
Tony Chan