Kaspars Vilkens wrote:
> 
> Hallo,
> I am trying to open (formed in bytes) binary file, change some byte, then
> send to browser as data to display (Something like gif with image).
> Idea is to open Macromedia's Flash *.swf file, change it a bit and then send
> (MIME type is application/x-shockwave-flash) it to browser, that requested
> it.
> 
> How should I do that?
> Maybe someone has some sample of opening||changing||sending binary file?
> 
> Any help appreciated!

All you have to do is binmode STDOUT and the FH for the file you have 
opened.  As for changing the binary data, that would invlolve knowing 
exactly what changes are needed.  Then just print the data to STDOUT 
after the content-type header or use syswrite and do it in blocks.

-- 
  ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
 (_/   /  )    // //       DBE Collectibles   http://www.todbe.com/
  / ) /--<  o // //      Mailto:[EMAIL PROTECTED] http://dbecoll.webjump.com/
-/-' /___/_<_</_</_    http://www.freeyellow.com/members/dbecoll/
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to