I was compressing a rosbag file using tar when I mistakenly used the same original file name for the the archive name and had it overwritten by the output archive , the compressed archive size is very small compared to the expected output had I used another name e.g., file.tar.xz. When I extract the archive , I get a file of type "STL 3D model (binary) (model/x.stl-binary)" instead of the original bag file of type "Binary (application/octet-stream)". The file size is the same but the format is different.
Is there a way to retrieve the original file or is this irreversible ? kindly find below the commands used to compress then extract the file.
tar -cJf <file.bag> <file.bag>
tar -xf <file.bag>
any help would be much appreciated , thanks in advance.
application/octet-stream
is often used as a generic object type, or used by lazy systems to identify binary objects. it could be that your object always was amodel/x.stl-binary
– Jad May 20 '21 at 11:10