EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TFileStream get value ?

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#34887
Posted: 10/26/2015 04:48:55
by Serkan a (Basic support level)
Joined: 10/08/2015
Posts: 23

Hi,

Code
TFileStream inputStream ("C:\\TestEimza\\output.txt", filemodeOpenRead);


I want read inputstream value ?

thanks
#34888
Posted: 10/26/2015 04:52:42
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

Please use TFileStream.Read method to read it content.

I’ve noticed there is no Support Access Ticket linked to your user account on EldoS site. Technical Support is provided to customers with the linked Support Access Ticket. You will find your Support Access Ticket together with all the details about how to use it in the registration e-mail that we’ve sent to you upon the purchase.

If you are evaluating the product and don't have a license yet, please let us know and then you can have support according to Basic support level. Basic support level includes answering basic technical questions that appear during product evaluation period. We also offer Premium support for a purchase from https://www.eldos.com/support/calc.php . You can use Premium Support to get higher level of assistance during your evaluation of our products.
#34895
Posted: 10/26/2015 17:00:34
by Serkan a (Basic support level)
Joined: 10/08/2015
Posts: 23

Thanks, Purchase premium support in time soon.

But,
Code
TFileStream outputStream(outputFilename, filemodeCreate);
            cms.Save(outputStream);


I don't save file, I want return signed text ? Thanks
#34896
Posted: 10/26/2015 17:03:49
by Vsevolod Ievgiienko (EldoS Corp.)

Could you clarify what is 'cms': is it TElCMSMessage? If yes then you should use TElCMSMessage.Content.Read method instead: https://www.eldos.com/documentation/sb..._read.html
#34897
Posted: 10/26/2015 18:43:54
by Serkan a (Basic support level)
Joined: 10/08/2015
Posts: 23

cms :
Code
TElSignedCMSMessage cms(NULL);


I use;
Code
   TElCMSContent *cm = cms.get_Content();
   char buffer[1000];
   cm->Read(buffer,cm->get_Size(),0);
   cout << buffer;


Save file signed data but return; Coming unsigned data ? Why?

Too thanks
#34898
Posted: 10/27/2015 01:30:59
by Vsevolod Ievgiienko (EldoS Corp.)

Then you should use TFileStream.Read, but you should also set TFileStream.Position to zero if any data was written to this stream before.
#34899
Posted: 10/27/2015 05:48:27
by Serkan a (Basic support level)
Joined: 10/08/2015
Posts: 23

Worked! Thanks
Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.

Reply

Statistics

Topic viewed 2465 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!