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

Thread: [Beta] File Stream Object

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,923

    [Beta] File Stream Object

    This extension was requested by Alonso to be able to open files and do stuff with them without loading any part of the file into memory - it keeps the file stream open for you to do your modifications on it. It is great for very large files when you only need to get or change a part of the file. Please post in this thread if you find any bugs.

    Download: http://www.LB-Stuff.com/MMF2/Extensions/FileStream_Beta3.zip

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,923

    Re: [Beta] File Stream Object

    If no issues or requests are posted soon then I will release this extension.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,923

    [Released] File Stream Object

    This object is now released:
    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=239815

  4. #4
    Hi LB,
    With Thanks again, Besides the memory address of the loaded file which we talked about previously, I have noticed that there is no posibility to place the position of the cursor backwards once the cursor position is already passed a place after a reading. More of control over the stream can be achieved if there are posibilities to set the position of the coursor where it is required as well as to be able to select some defined part of the file to stream for the sake of easy navigation in case, the purpose of using the extension is editorial.


    Regards
    What matters is not to add years to your life but to add life to your years.
    Give yourself some time.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,923
    Ah, I don't know why I didn't add that originally. It's on the todo list

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,923
    It's been a long time, but I have had requests to make this object Unicode compatible. As a result, I have completely rewritten it in EDIF and added new features to boot. You can download the new version here - consider it to be a beta version for now. First, remove all instances of "FileStream.mfx" from your Fusion directory (they should be in /Extensions/ and /Data/Runtime/), then extract the zip to your Fusion directory. If you want to revert back to the previous version, again you need to remove all instances of "FileStream.mfx" from your Fusion directory (they should be in /Extensions/Unicode/ and /Data/Runtime/Unicode/) and then reinstall the old version from the Extension Manager inside Fusion, or from here.

    Please test it and let me know of any issues. If everything works fine, it will be released officially.

    New features include:
    • Actual error handling - you can now use On Error and be notified of problems and mistakes while working with file streams
    • Unicode support - unicode filenames are supported and you can read and write both UTF-8 and UTF-16/Unicode strings to/from files
    • You can now change the read/write cursor positions before reading or writing
    • More options for string handling, specifically length-terminated strings are now supported in the form of a four-byte integer size preceding the string and no null terminator


    Changed features:
    • The "File is OK" condition will now only be false if the file is in an unrecoverable state. If a read/write error occurred that is recoverable, you can still work with the file, but if this condition is false you must close the file and try again. Typically this could happen if you are reading/writing a file to a flash drive that is pulled out during the operation.


    Removed features:
    • The "clear error state" action is no longer supported because it is no longer necessary - recoverable error states are cleared automatically before each read/write operation. All error types, both recoverable and unrecoverable, now trigger On Error.
    Attached files Attached files

  7. #7
    You should add named pipe handling to this extension. It's weird---just today I was trying to do that with the old version in the manager. How coincidental.

    But yeah, CreateNamedPipe would be super useful for extension interoperability that requires files yet you don't want to write a temporary file.

  8. #8
    Hi, LB!
    I'm now testing your new version. I found issue here.
    "Close File Stream" function weird displays in the he Event Editor, the Event List Editor and the Action Editor.

    This function seems doesn't work if this object inherited from the previous version (I never insert new object and replace events.).

    Attached thumbnails Attached thumbnails Click image for larger version. 

Name:	isue_of_file_stram_v110.jpg‎ 
Views:	55 
Size:	19.9 KB 
ID:	19831  

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,923
    @SuperDisk: It's on the todo list now

    @ASD: Whoops, that was a copypaste error.


    New beta version v1.1.1 is available here which fixes ASD's bug as well as some others that were sent to me privately. Please test again and let me know of any issues.

  10. #10
    Thanks.
    Confirmed I reported bug fixed!

Page 1 of 2 1 2 LastLast

Similar Threads

  1. File Stream Object
    By LB in forum Released Extensions
    Replies: 2
    Last Post: 16th May 2016, 12:21 PM
  2. iOS video object, how do you stream a movie?
    By Xeeko in forum iOS Export Module Version 2.0
    Replies: 7
    Last Post: 18th October 2012, 07:05 PM
  3. Stream?
    By RhysD in forum Click Convention 2011 (archived)
    Replies: 2
    Last Post: 20th August 2011, 11:03 AM
  4. NSV Stream Object
    By Spryz in forum Extension Development
    Replies: 0
    Last Post: 9th February 2009, 03:13 AM
  5. Continuous Stream?
    By Brandon in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th March 2007, 07:50 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
  •