This article provides the steps on how to find the files that correspond to a given key in a Binary content. Let's now review the process the application uses to create the file name from the given key.
The following is an internal process followed by an example.
- Convert the dashes to ASCII Value
- Reverse the key.
- Create two files append the .bin and .key extension.
- The .bin contains binary content.
- The .key holds the unscrambled binary content key.
- Both files are placed in the directory structure based on the first three characters.
E.g., attachment-1101 is placed as 101154tnemchatta.bin + 101154tnemhcatta.key in the directory
"<storage provider root>\1\0\1\".
Another example: The binary content portion of the upload shows up in
jiveBinStore table as:
|binkey [PK] character varying||namespace [PK] character||recordtype integer||datasize bigint||bindata bytea|