About Store Forum Documentation Contact
Donations:
197$/mo



Post Reply 
Download result to string
Author Message
Biga Offline
Member

Post: #1
Download result to string
checked the tutorial where the result file of Download was written into binary file.
I would like to ask, how can I save a result to a string, for example from a PHP script?

web.create("http://.../letolt.php");


PHP Code:
bool Update()
{
    if(
web.state()==DWNL_DONE// if all data downloaded successfully
   
{
      
CCharresult = (CChar*)web.data();
... 

it is ok?
I get only ??? chars though the PHP should send result of mysql query.
05-03-2014 05:58 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Download result to string
try FileText f; f.readMem(web.data(), web.done());
f.getAll or some other f.get
05-03-2014 11:03 PM
Find all posts by this user Quote this message in a reply
Biga Offline
Member

Post: #3
RE: Download result to string
thx, works fine.
05-05-2014 10:09 AM
Find all posts by this user Quote this message in a reply
Post Reply