Dart Home | PowerTCP Zip Compression for Active | Custom Development | Reply | PowerTCP Zip Compression for ActiveX Topics | Forums |
Author | Forum: PowerTCP Zip Compression for ActiveX Topic: Using Streams with FlashPlayer |
PaulC91316a From: Livermore, CA USA Posts: 3 Member Since: 06/15/05 |
posted June 15, 2005 7:44 AM Hi, I know I've read this somewhere, but can't remember where (so please forgive me). I am using the FlashPlayerControl to play Flash (swf) files directly from memory. The ActiveX component is looking for a memory handle (long) and buffer size (long). I would like to extract the first (and only) file from a zip file and pass the handle and size to the DLL. I tried using streams, but it just skips over the flash file as if it's a blank file. I do not want to use temp files. Any help would be greatly appreciated. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted June 15, 2005 9:38 AM I'm unfamilar with the issue you are describing. If you can create a very simple project that shows what you are doing, please zip it up and email it to support@dart.com and we'll see if we can take a look at it. |
PaulC91316a From: Livermore, CA USA Posts: 3 Member Since: 06/15/05 |
posted June 20, 2005 11:13 AM Hi Tony, Here's the code snippet that I'm trying to replace with the PowerTCP ZIP tool. I would lke to unzip from a file (demo1.zip) to a password protected (demo1.swf) file with password "pass". As you can see I'm pulling data from the resource pool, but want to keep it external so I can update the *.swf files without replacing the exe file. I tried using the DartStream object but never had a success. Please help. Dim ResourceStream As System.IO.Stream = Me.GetType().Assembly.GetManifestResourceStream("Demo.1.swf") Dim Buffer() As Byte = New Byte(ResourceStream.Length) {} ResourceStream.Read(Buffer, 0, ResourceStream.Length) Dim pBuffer As Integer = LocalAlloc(LPTR, ResourceStream.Length) System.Runtime.InteropServices.Marshal.Copy(Buffer, 0, New System.IntPtr(pBuffer), ResourceStream.Length) Dim FPCLoadMovieFromMemory As New SFPCLoadMovieFromMemory FPCLoadMovieFromMemory.layer = 0 FPCLoadMovieFromMemory.lpData = pBuffer FPCLoadMovieFromMemory.dwSize = ResourceStream.Length SendMessageA_LoadMovieA(hwndFlashPlayerControl, FPCM_LOADMOVIEA, 0, FPCLoadMovieA) |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted June 20, 2005 11:20 AM Please create a very simple project that shows what you are doing, please zip it up and email it to support@dart.com and we'll see if we can take a look at it. Make sure you include Demo.1.swf as well. Thanks. |
PaulC91316a From: Livermore, CA USA Posts: 3 Member Since: 06/15/05 |
posted June 20, 2005 11:43 AM Okay - I sent 3 files to you. Demo.zip (simple demo in VB.net 2003) Demo1.zip (example demo1.swf file - password = "pass") Demo2005.zip (simple demo but already converted to VB.Net 2005) -PC- |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted June 20, 2005 11:44 AM Okay, thanks. Someone will get back to you as soon as they have had a chance to review them. |
Reply | PowerTCP Zip Compression for ActiveX Topics | Forums |
This site is powered by
![]() |