aspose file tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes MY magic value is 00 00 01 01 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "MY magic value is 00 00 01 01" Watch "MY magic value is 00 00 01 01" New topic
Author

MY magic value is 00 00 01 01

Eric Kim
Ranch Hand

Joined: Feb 21, 2004
Posts: 37
I think it is different from you guys, right? I am also wondering should I just skip it at all, or do some verification on it to make sure this is a valid file? In fact, even if this bit is verified, it does not mean this .db file is truely a db file needed for the assignment?
Satish Avadhanam
Ranch Hand

Joined: Aug 12, 2003
Posts: 697
Originally posted by Eric Kim:
I think it is different from you guys, right? I am also wondering should I just skip it at all, or do some verification on it to make sure this is a valid file? In fact, even if this bit is verified, it does not mean this .db file is truely a db file needed for the assignment?

Hi Kim, here is a statement from my specs

4 byte numeric, magic cookie value

I'm not sure of how you are reading it from the file. In general, it should be a numberic number like 300/500 or something like that. If your magic cookie condition is also something like above, then you can try using readInt() method of RandomAccessFile to read the magic cookie.
Good Luck.
Eric Kim
Ranch Hand

Joined: Feb 21, 2004
Posts: 37
Here is what my instruction says:
4 byte numeric, magic cookie value. Identifies this as a data file
But when I use a hex editor to open the db file, then it is 00 00 01 01
Satish Avadhanam
Ranch Hand

Joined: Aug 12, 2003
Posts: 697
Hi Eric, I answered this question in your other post. If you have any questions, please ask them.
Good Luck.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MY magic value is 00 00 01 01
 
Similar Threads
back ground process id ??
Data File Format and reading header information
JDBC template outer join and cast(@myValue AS date)
How to identify Auth method NTLMv1 or NTLMv2
Verifying the db file