Am 06.03.2017 23:57 schrieb "fredvs" <fi...@hotmail.com>: > > Re-hello. > > Ok, I do not find yet the guilty in my code, I will re-try a other day. > By the way, your code is working perfectly Sven. > > Now, last part of the question: how to convert that file stored into > ressource but without to write to the disk (only memory stream)? > > A TFileStream could be used but it needs a path. > And in ressource there is no path to use in > TFileStream.Create('/the/path/filename', fmOpenRead); > > What could be the solution ?
To access a file stored as a resource you need to use TResourceStream. Regards, Sven
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal