Many file format standards (e.g. PNG or GIF) include the SUB character in their headers to perform precisely this function.
As I want to read images from STDIN (uploading files to a webserver) at the first CHR$(26) the INPUT$ function stops reading the STDIN and the string returns incomplete.Some programming languages (e.g. Visual Basic) will not read past a "soft" EOF when using the built-in text file reading primitives (INPUT, LINE INPUT etc.), and alternate methods must be adopted, e.g. opening the file in binary mode or using the File System Object to progress beyond it.
I am doing some research but maybe an experimented programmer can help me.
Regards