Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Modify the db file

 
Pete Palmer
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have been using the following link to inspect the contents of the db file :-
http://www.fileformat.info/tool/hexdump.htm

However, it does not allow the bytes in the file to be modifed. I just wondered if anyone can point me to something similar but allows specific bytes to be modified.

Regards

Pete
 
Alain Dickson
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pete - try this, I used this one for myself. It allows editing.

http://www.hexedit.com/download.htm

Download version 2.5 (Free).

Alain
 
Roel De Nijs
Sheriff
Posts: 9780
101
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would you want to edit the content of the db-file? why not use your Data-class ? or write a small program with a RAF or a FOS to manipulate it.
 
Pete Palmer
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alain,
Thanks for the suggestion seems to work nicely.

Roel,
The db file provided to me has all the 2 byte record flag set to VALID (00 00) and after some testing I have some set to DELETED (0x8000), however, I wanted to ensure that I handled records with the record flag set to something "invalid". Using the hex editor, I am able to modify flags accordingly and run further tests to confirm this.

Regards

Pete
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic