And a file data saved directly in database. This case is irrelevant too because im interested to put data in current storage (SysSetting ActiveFileContentStorage), not in database.
Uploading or accessing existing files should be done through the API for file management. We encourage you to read the documentation on the API for file management on Creatio Academy. Also, in the documentation there is an example for creating new files using the Terrasoft.File.Abstractions.IFileFactory interface.
we have Creatio Installed in our environment and confined to saving files in S3 instead of the database, now how I can get a stream of files saved in S3 inside the process script
I used the below code when I saved the file in the Database :