Is it possible to load a binary file into string in APMS,
and then write it back to some other file?
Professional Software Development Tools
Is it possible to load a binary file into string in APMS,
and then write it back to some other file?
Never know what life is gonna throw at you.
(Based on a true story.)
What sort of string do you want it in? Do you want to use String actions on it? Do you want to show it on the screen? Or do you just want to read from one file and write to another?
Lua's built-in io library supports reading binary files to a string. In Lua strings are not NULL-terminated so they can actually store non-ASCII bytes.
Basically I want to, for example, throw .jpg into MySQL's BLOB field, and be able to retrieve it.
Never know what life is gonna throw at you.
(Based on a true story.)