User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14

Thread: Binary attached file

  1. #1
    No Products Registered

    Join Date
    Jun 2009
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Binary attached file

    Is there a way I can basically attach a file (say picture) to an exe and then extract it and display it without writing it to the HDD.

  2. #2
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Binary attached file

    Binary file should be able to do that. You can add a file to the stack and save it, load it, encrypit it whatever

  3. #3
    Clicker Fusion 2.5Fusion 2.5 MaciOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Apr 2008
    Location
    Indonesia
    Posts
    694
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Binary attached file

    Quote Originally Posted by Evoxe
    Is there a way I can basically attach a file (say picture) to an exe and then extract it and display it without writing it to the HDD.
    When you extracting it, of course it will be automatically written to your HDD

    You can use Binary Data feature on MMF2 for that. My "Fusion FLV Player" example will show you how to use that feature.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Aug 2006
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Binary attached file

    I have been wondering something about binary extraction. As it seems it writes a temp file on the computer when running it, couldn't someone just copy and paste the file and have a version of it that wouldn't delete on close etc?

    Or is it protected somehow to stop someone from just taking the contents easily like that?


  5. #5
    No Products Registered

    Join Date
    Jun 2009
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Binary attached file

    If I -attached- an exe to the file. Can I run the -attached- in game without writing to the disk?

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Binary attached file

    Depends on how you attached it... you you append it with file object or use binary data? You could probably use looki's example, I forget where it is though.
    Working as fast as I can on Fusion 3

  7. #7
    No Products Registered

    Join Date
    Jun 2009
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Binary attached file

    Yeah, I would want to append the data to the file. and basically somehow use,(for example) the 'file object' to run an application and point it to the appended binary data.

  8. #8
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Binary attached file

    Looki made an example (which I cannot find) of how to do this with the binary object.
    Working as fast as I can on Fusion 3

  9. #9
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Binary attached file

    Hey Evoxe. First, put the file in the directory of your MFA (E.g. C:\My Game\Filename.png). Now, go to the binary data tab and add the file. Now, let's go to the Event Editor.
    On Start of Frame
    -> Special Object -> Binary Files -> Extract binary file Apppath$+"Filename.png"

    Then, you can load it using extensions by entering this as path name: BinFileTempName$(Apppath$+"Filename.png")

    This expression can be found at Special Object -> File names -> Binary file temporary filename.

    Note: The file is extracted to your \Temp\ folder (temporarily).

  10. #10
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Binary attached file

    Looki he want's to be able to do it wothout extracting at all.
    Working as fast as I can on Fusion 3

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Using an ini file as a binary data element
    By keokeo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 13th February 2011, 11:03 PM
  2. Sound file as binary file
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 22nd March 2010, 09:56 PM
  3. Opening a big file with Binary object
    By Hernan in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 18th July 2008, 07:12 PM
  4. How to copy file from Binary Data
    By William87 in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 23rd October 2006, 12:19 PM
  5. MooGame Help Needed Please (FILE ATTACHED)
    By YAS in forum File Archive
    Replies: 4
    Last Post: 25th September 2006, 09:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •