Retrieve 'corrupt' files from mobile

Revision as of 16:58, 25 June 2015 by WikiFreak (talk | contribs) (Created page with "Category:Other If you ever receive files, such as JPG files, that you cannot open with '''error (0x2f 0x39)''' that means the files are encoded in BASE64. You need to ''d...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


If you ever receive files, such as JPG files, that you cannot open with error (0x2f 0x39) that means the files are encoded in BASE64. You need to decode them.


On Linux:

# 1. Check the file type (expected: ASCII test)
file sourceFileToDecode.JPG       

# 2. Convert
perl -MMIME::Base64 -ne 'print decode_base64($_)' < sourceFileToDecode.txt > out


Sources: