Android Question B4A File corruption

daniedb

Active Member
Licensed User
Longtime 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
 

positrom2

Active Member
Licensed User
Longtime 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.:(
 
Upvote 0

imbault

Well-Known Member
Licensed User
Longtime 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
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/
 
Upvote 0

RandomCoder

Well-Known Member
Licensed User
Longtime 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.
 
Upvote 0

daniedb

Active Member
Licensed User
Longtime 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.:(
Thanks. Will download and install for future use
 
Upvote 0

daniedb

Active Member
Licensed User
Longtime 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.

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
 

Attachments

  • buurtwag.zip
    264 bytes · Views: 164
Upvote 0

RandomCoder

Well-Known Member
Licensed User
Longtime User
@daniedb I'm sorry but there is nothing to recover. The files are several bytes of nothing.
 
Upvote 0

JohnK

Active Member
Licensed User
Longtime 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
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.
 
Upvote 0
Top