CTexasAPI::Upload

Upload is just like the RemoteMethod method, but it takes a filename as a parameter to upload a file to the texas server.

unsigned int Upload(
   unsigned int methodID,
   int interfaceVersion,
   short methodOpt,
   short language,
   pCallbackRoutine callback,
   void* objectID,
   const char* fileName,
   const void* BSTR = NULL
);

Parameters

methodID The entity ID for the user.
interfaceVersion For the expect returning parameter schema.
methodOpt CTexasAPI::Mode
language Used for error messages from this method.
callback Used for the results.
objectID Returned to the callback routine.
fileName This returning file should be saved to this location.
BSTR Any parameters for this method.

Return Values

If the method succeeds, the return value is zero else see error codes for more details.

Remarks

Example Use
if(server.Upload(ENTITY_FILE,1,CALLBACK_PROGRESS,
      0,fileCallback,this,TEXT("LocalFileName")))
   MessageBox(TEXT("Unable to call upload file"));

Also See

Download, RemoteMethod, InvalidateObject
 

Contact Ekky Software

All around the world Ekky Software is contactable seven days of the week by submitting the following details.

Thank you for your time and interest.
Ekky Software Customer Support Team.

Ekky Software Product Range
Ekky Software Homepage Texas Business Software ObjectDatabase++ TScript Ekky Software Homepage Texas Business Software ObjectDatabase++ TScript