Android Question B4A File corruption

Discussion in 'Android Questions' started by daniedb, Sep 7, 2015.

  1. daniedb

    daniedb Active Member Licensed User

    PLEASE HELP!!!!

    I was busy with an Application when we had a power failure.
    Now, when I try to open the file it say

    An Error occured
    Error loading file
    The given key was not present in the
    dictionary

    The file show 9457kb, but show Blank in any text editor

    PLEASE, I need advice on how to recover this file..
    Thanks
    Danie
     
  2. positrom2

    positrom2 Active Member Licensed User

    To be immune against such desaster and also to be able to go back to any previous version I always have "Autover" running (as service)
    http://autover.codeplex.com/
    configured to save time-stamped (in the file name) all needed file types determined by their extension to a backup directory on a different partition or to a cloud. Files are backed up as soon as they have been changed.
    This is a slim kind of versioning solution, setting-up is straight-forward.
    -Does not help if it was not installed prior to the desaster.:(
     
  3. imbault

    imbault Well-Known Member Licensed User

    Don't you have any exported zip file of your project?
    Have you tried notepad++ or an hex editor to see the header of the b4a file?

    You can try Hiren's boot tools to recover your file:
    http://www.hirensbootcd.org/
     
  4. RandomCoder

    RandomCoder Well-Known Member Licensed User

    I'd advise making a copy of it first and then you can try different things without risk of further damaging the file. Opening with a Hex editor might be worth a shot.
     
  5. daniedb

    daniedb Active Member Licensed User

    Thanks. Will download and install for future use
     
  6. imbault

    imbault Well-Known Member Licensed User

  7. daniedb

    daniedb Active Member Licensed User

    Yes, I did copy the file. Hex Editor only show ....... dots, nothing else.

    Luckly 80% of the coding has been done inside a Service, which is still 100% accesible.
    Just the .B4a, and Meta files have this problem.

    Damage Files attached in a ZIP. Maybe someone is lucky :)

    Regards
    D
     

    Attached Files:

  8. RandomCoder

    RandomCoder Well-Known Member Licensed User

    @daniedb I'm sorry but there is nothing to recover. The files are several bytes of nothing.
     
  9. JohnK

    JohnK Active Member Licensed User

    You may be using the "wrong' text editor. If a "text" file has a zero / null character (ie ASCII=0) in it, many text readers will stop reading the file (I personally use Notepad++ because of this specific issue). Try opening it up in a binary file reader. You may simply be able to replace the zero character with a space (ie ASCII=32) and it will load.
     
  10. daniedb

    daniedb Active Member Licensed User

    Thanks for trying anyway!

    Downloaded and Installed AutoVer for future backup.

    Much appreciate
    Danie
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice