Author Topic: How might one convert a BINARY FILE to a base64 string?  (Read 2062 times)

I don't know how Torque decides to read the lines, but I think it uses the OS-specific line marker, \r\n, \r, and \n

1. What kind of file are you trying to convert to a string?

2. while reading the file convert 0x00 to a newline?
1. look at the title.

2. You can't read 0x00. And even if you could, then what would newline be converted to?

Conclusion: Torque has poor file manipulation functions (why can't you read 100 bytes at a time or something, what if the new line characters are important for the file?) and limited string manipulation.

Conclusion: Torque has poor file manipulation functions (why can't you read 100 bytes at a time or something, what if the new line characters are important for the file?) and limited string manipulation.
:(

why did i have to learn torquescript first... it's a broken language :(

1. look at the title.

2. You can't read 0x00. And even if you could, then what would newline be converted to?

A binary file could be a picture, model, music, etc.

newline is a delimiter,  like space or tab

A binary file could be a picture, model, music, etc.

newline is a delimiter,  like space or tab

what are you talking about

A binary file could be a picture, model, music, etc.
picture, but it doesn't make much of a difference.