Converting swf file to Gif/Jpeg/Png file

Hi,
I want to save a flash file(swf) in the server as gif/jpeg/png file. Problem is that if on the browser i want to take a snapshot of flash file then how can I convert that SWF file to gif file before sending it to server.

I used third party java library "Flagstone Software" the sample code for which is as follows:
File aFile = new File("Flashfile.swf");
byte[] bytes = new byte[(int)aFile.length()];
System.out.println("**Number of bytes in before encoding= "+bytes.length);
try {
FileInputStream imageContents = new FileInputStream(aFile);
imageContents.read(bytes);
imageContents.close();
FSMovieObject fsMov = new FSDefineJPEGImage(26,bytes);
byte[] b = ((FSDefineJPEGImage)fsMov).getImage();
ConstructingGif cGIF = new ConstructingGif(b);
catch (FileNotFoundException e) {
     //throw new FileNotFoundException("MovieClip.swf");
catch (IOException e) {
//throw new IOException("MovieClip.swf");
The ConstructingGif class simply writes byte array to disk with file extension as gif or jpeg.
Now when I try to open the generated file through Photo Editor, I am being shown the error message as "Can't determine type".
Is this the problem of encoding...If so then what can be the solution?

Similar Messages

  • How can I convert .swf  file to exe file?

    thanks

    Hi
    Thank for your choise.
    If showing only white screen, please download the lastest version, v2.03.
    http://www.bullrushsoft.com/download.html
    This problem occurs in Win7 sp1, especially IE has been upgraded to v10.
    Our SWF to EXE Converter must need the FlashPlayer plugin for IE, it 's not a atandalone program.
    So it only 880KB.
    Our online converter is the adobe flash player exe, it can be embed the swf  into, and standalone, so its size > 4MB.
    More details, please visit http://www.bullrushsoft.com/online.html
    Best Regards.
    2013-08-11
    Bullrushsoft Support Team
    From:  mmshahid73
    Date:  2013-08-11  02:52:01
    To:  Sandro_brs
    Cc: 
    Subject:  _How_can_I_convert_.swf fileto_exe_file?
    Re: How can I convert .swf file to exe file?
    created by mmshahid73 in Flash Ad Development - View the full discussion
    Hi, I used bullrushsoft SWF to EXE converter, but the created EXE file showing only white screen, i think i need to add flash player also but i don't know how to add flash player duriing swf to exe conversion.
    Because when i converted swf into exe from my pc, it showing size 880 KB where swf file size is 413 KB, onthe other hand, I convert the same online which is playing correctly but the converted file size is 4.57 MB.
    Am i right?
    Kindly help
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5583680#5583680
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5583680#5583680
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5583680#5583680. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Flash Ad Development by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Converting .swf files to .exe files on a mac?

    How can I convert .swf files to .exe file on a mac?
    I am working in Flex, so if there is a way to directly export .exe files that would be even better, but either one would be great. Can't seem to find any answers on this.
    Thanks a lot!

    Have you tried asking in the Flex forum?

  • Converting SWF file for publication and secure distribution.

    I'm looking for advise on how to securely publish .swf files created in inDesign CS6 How to build a launcher and how to convert into iPad and Android apps.

    You can't do any of that with just ID. You need access to the Digital Publishing Suite and generate the relevant ePub formats and platform-specific packages.
    Mylenium

  • Converting .swf file to .flv or mp4 for free?

    Hi,
    Does anyone know of a program that will allow me
    to convert a .swf file to .flv or .mp4 for free?
    I can only find paid software to do this.
    Thanks,
    pacecom

    pacecom wrote:
    Hi David,
    MPEG Streamclip won't open .swf files on my computer. Any other suggestions?
    Thanks,
    pacecom
    Could depend on where you got your .swf, too. The easiest way to obtain a useful copy of the video portion of a SWF file is to ask the creator to export it for you as a movie instead of native .swf which can contain tons of information that isn't really a movie.
    http://www.mix-fx.com/swffileformat.html
    http://en.wikipedia.org/wiki/SWF
    bogiesan

  • Unable to convert swf files into fla files

    Hi,
      I tried using Dreamweaver to convert a SWF file into a FLA file so I can edit it in CS 5.  But when I right clicked the placeholder for the file, it doesn't have an "Edit in Flash"  option. What am I doing wrong?
    Thanks very much,
    Rosemary    

    According to http://help.adobe.com/en_US/flash/cs/using/WSd60f23110762d6b883b18f10cb1fe1af6-7f12a.html# WSc78c5058ca073340dcda9110b1f693f21-7acf
    asset is reflected in Flash immediately. 
    Edit a SWF file from Dreamweaver in Flash
    If you have both Flash and Dreamweaver installed, you can select a SWF file in a Dreamweaver document and use Flash to edit it. Flash does not edit the SWF file directly; it edits the source document (FLA file) and re‑exports the SWF file.
    In Dreamweaver, open the Property inspector (Window > Properties).
    In the Dreamweaver document, do one of the following: 
      Click the SWF file placeholder to select it; then in the Property inspector click Edit.
      Right-click (Windows) or Control-click (Macintosh) the placeholder for the SWF file, and select Edit With Flash from the context menu. 
    Dreamweaver switches the focus to Flash, and Flash attempts to locate the Flash authoring file (FLA) for the selected SWF file. If Flash cannot locate the Flash authoring file, you are prompted to locate it."
    But I don't see "Edit with Flash" option.  Maybe because I have a trial version of Dreamweaver?

  • Converting .swf files into .mxml files

    Hi,
    I am working on a flex based project.
    We need to developa a rich UI application using flex.
    Our UI team is not comfortable with mxml.
    But team is pretty comfortable with flash.
    I was just wondering whether it is possible if UI team
    creates UI screens using flash and provide us with .swf files for
    the screens and we could convert them in to mxml file and will add
    active scripting for dynamic behavior.
    Thanks in advance
    Regards
    Tarun

    No, you can't reasonably decompile a swf to mxml.
    However, the Flash guys can create the components as SWCs,
    which you can glue together with a little bit of mxml and AS.
    There are some good docs on this subject.
    Tracy

  • Convert SWF file to HD video

    Hi to all,
    I have a big problem. I did a 10 second animation in Flash CS5 and exported to a swf file, but my client is asking me a to convert it to a video file with this requirements:
    Size: HDTV 720P. (1280 X 720) pixels. 30FPS. (Frames per second)
    Format: stream format: HDV-HD1. Stream Type: MPEG-2. Transport
                Stream(TS). Aspect Ratio: 16:9. Britate Type: CBR (Constant Bitrate).
                Number of passes: 1. Video Bitrate: 18300
    I tried some conversion programs to do the job:
    iWisoft Flash SWF to Video Converter
    E.M. Magic Swf2Avi
    Xilisoft Video Converter Ultimate 6
    Total Video Converter HD
    All of them recognizes the swf file fine, ( I set up the fla file with 1280 X 720 pixels and 30 fps) but when I try to export to a video format with the previous specifications using any of the programs, I get a very slow video, not smooth at all, and sometimes a large video with 2+ minutes (supposed to be only 10 sec). The swf file plays fine.
    Any suggestions? thanks in advance.

    Just open the original project FLA, file->export movie->AVI (uncompressed) and set the dimensions as you mentioned. After you get the movie exported from flash, convert that AVI (already the proper size) to the format you need.
    If you have the Adobe Suite then you have Adobe Media Encoder. It supports MPEG2 (HDV-HD1 is just a specific set of settings for MPEG2). It's pretty darn easy to set up. No reason to pay for more software if you already have it.

  • Converting SWF file to MOV file

    Need help, how can I convert a swf file to mov file for use with keynote?

    http://www.versiontracker.com/dyn/moreinfo/macosx/33564
    and more if you just google 'swf to mov'

  • How convert SWF file 11 version) to SWF older version ?

    Hi ,
    Sorry for my ignorance but since I would need to convert one SWF file (11 version)to another SWF file(10 version). Is it possible? Could anybody help me with that?
    Thanks in advance
    Best Regards
    Alejandro

    Hi Claus and Ned
    First of all, thanks for your help.
    On the other hand I I have tried with Sothink and ASV decompilers and I could not open the SWF yet. The ASV said me that it did not find the SWF file and the Sothink told me that SWF is corrupted. but I can it with Adobe Flash Player 11. Maybe both softwares did not support Flash 11.
    Thanks for your time again
    Alejandro
    Pd: I could export the SWF file only like " preview" and to honest with you, I do not know waht this one means !

  • Pocket Playlist- how to convert mp4 file to use on pocket playlist

    I have an mp4 video that i would like to use on my pocket playlist, but not sure how to convert the file?

    Hello Andy,
    I do not have an HP Pocket drive but according to the manual...
    The pocket acts as any other drive to store files on. Its the media player that you use that has to support the type of file you are playing.
    This is cut from the manual.
    "File types supported by HP Pocket PlaylistYour playback device may not support all of the following formats. If your playback device does not support a format, use the ArcSoft MediaConverter 7 computer application to convert (transcode) the files into a format that will play back on your mobile device.
    HP Pocket Playlist supports the following file formats:
    Video: .avi, .3gp, .flv, .m4v, .m4p, .mov, mp4, .mpeg, .mpeg2, .mpg, .ogg, .qt, .ts, .tts, .wmv
    Music: .aac, .ac3, .adts, asf, .lpcm, .m4a, .mp3, wav, wma
    Photo: .bmp, .gif, .jpeg, .png, .tiff, .tif
    You need to import files with the "Arcsoft Media Converter" which will convert the format for you.
    Here are the links to all the info for HP Pocket Drives.
    Using the HP Pocket Playist to Play Media Files
    Converting Media Files Using Arcsoft MediaConverter 7
    Hope it helps.

  • How to import swf files into project

    I am new to flash programming. I have to make minor
    modifications to an swf
    file. I decompiled it to the fla file but all of the sprites
    which are
    themselves swf files did not end up in the fla file. how do I
    get these swf
    files back into the project so when I make the new swf file
    it will be the
    same as the original one?

    Hi
    I think 'Handbrake' will convert swf files used it for lots of converting but not tried it with swf recently, its available for free download just give it a google.
    Hope this helps

  • How to import swf files to FCPX 10?

    Hi! I need to import a swf to Final Cut Pro x10. Does anybody know how to convert it?
    Thanks!

    Hi
    I think 'Handbrake' will convert swf files used it for lots of converting but not tried it with swf recently, its available for free download just give it a google.
    Hope this helps

  • Can i add play/pause button when playback swf file??

    Hi all
    i have a script to convert ms office docs to pdf then to swf files and display it in my web site, the problem is that the output files (swf file) contain each page of my documents in a separated frame and when i load the page there no possibilitie to control this file (play / stop) or (next/previous) buttons, the only way is to use the right click menu options.
    i am asking if there are any solution to embed my converted swf files and control it.
    thanks

    Hi,
    It sounds like you'll want to talk with the author of the script that builds the swf.  If that's you, then I'd recommend reposting this question over on the Flash Professional forums.
    Thanks,
    Chris

  • Convert .SWF

    Does anyone know how I can convert .SWF files to either Quicktime or .AVI? Thanks, as always.

    You can try Aunsoft SWF Converter, It can convert swf to avi with high quality,
    I think it support Quicktime either.
    You can download it, install and uninstall very easily!
    http://www.aunsoft.com/flv-converter/

Maybe you are looking for

  • Cin-exceise-tax

    Issue No.1 Short Text how to prepare PO having discount after excise & tax Long Text hi, Our bussiness requirment is that we want to prepare a PO having discount after excise and tax. Basic Price 32.930 Add Excise Duty 4% 1.320 Add Cess .125% .040 Ad

  • Can I have a SATA 600 SSD in my mac pro early 2011

    Hello, I have a Macbook Pro early 2011. And I am wondering if I can install a sata 600 SSD in my mac. I would like to place the SATA 600 SSD in my optical bay and keep my existing HDD in the normal bay. So, is this possible? Roy

  • Nokia Lumiya 530 Camera Problem

    Hello Ser ji my Nokia Lumia 530 Camera Zoom Not Working Please Help To Work my camra Zoom please

  • Can't purchase

    Hi. I've just create a new account and I did purchase 169.99 SAR bur it didn't reflect to my game. After so when I try to make another purchase it says not confirm please contact apple store support. What was wrong and how can I claim my money back ?

  • Software iOS 6.0.1.failed update, Software iOS 6.0.1.failed update

    Software iOS 6.0.1.failed update what to do next