Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ASP / General ASP Topics / July 2009



Tip: Looking for answers? Try searching our database.

Deliver a Flash file from ASP - Curious Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Toni - 10 Jul 2009 21:12 GMT
I've got a strange problem... I have a Macrome... uh, Adobe Flash file that needs to be
delivered from an ASP page.

Partial source:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<PARAM NAME=movie VALUE="MyFLASH.ASP">

notice that the param VALUE above is an ASP file, not an .SWF file.

If MyFLASH.ASP contains:
RESPONSE.REDIRECT "/flash/myflash.swf"

it works. But I can't do that (because the redirect tells the SWF actionscript that the
file name is myflash.swf. I don't want that.)

Anyway, I'd like the ASP file to stream the SWF file. I've tried Response.BinaryWrite
but I think I'm using it wrong because it send the Flash file as text characters.

Can anyone tell me the solution? Either classical ASP or ASP.NET?

Thanks!!!
Daniel Crichton - 13 Jul 2009 09:59 GMT
Toni wrote  on Fri, 10 Jul 2009 16:12:32 -0400:

> I've got a strange problem... I have a Macrome... uh, Adobe Flash file
> that needs to be  delivered from an ASP page.

> Partial source:
> <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
> <PARAM NAME=movie VALUE="MyFLASH.ASP">
> :
> notice that the param VALUE above is an ASP file, not an .SWF file.

> If MyFLASH.ASP contains:
> RESPONSE.REDIRECT "/flash/myflash.swf"

> it works. But I can't do that (because the redirect tells the SWF
> actionscript that the  file name is myflash.swf. I don't want that.)

> Anyway, I'd like the ASP file to stream the SWF file. I've tried
> Response.BinaryWrite  but I think I'm using it wrong because it send
> the Flash file as text characters.

> Can anyone tell me the solution? Either classical ASP or ASP.NET?

> Thanks!!!

You would need to open the file as a binary file, write out the appropriate
MIME content header, and then write out the binary data. Try looking for
examples using ADO.Stream for this.

Signature

Dan

Toni - 15 Jul 2009 01:35 GMT
That helped to solve my issue.

THANKS!!!

"Daniel Crichton" wrote...
> Toni wrote  on Fri, 10 Jul 2009 16:12:32 -0400:
>
[quoted text clipped - 24 lines]
> content header, and then write out the binary data. Try looking for examples using
> ADO.Stream for this.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.