hello! i have a c++ client source code as follows :
Client_Operation::Client_OperationServiceRequest^ request = gcnew Client_Operation::Client_OperationServiceRequest();
System::IO::FileStream^ wcstream = gcnew System::IO::FileStream (gcnew System::String ( "D:\\sample.zip" ), System::IO::FileMode::Open);
System::IO::BinaryReader^ wcbin = gcnew System::IO::BinaryReader (wcstream );
request->fileBytes = wcbin->ReadBytes (wcstream->Length);
Client_Operation::Client_OperationService^ service = gcnew Client_Operation::Client_OperationService();
Client_Operation::Client_OperationServiceResponse^ response = service->clientRequest( request);
these source codes are suppose to read and send a zip file to the web service (the server is using java).
in the client side, data in sample.zip are read properly and stored to request->fileBytes.
however, value of request->fileBytes changes when retrieved in server side.
does anyone know how to send zip file bytes to server?
im sorry, i am new to c++ so im having a hard time fixing this one.
any comment/suggestion is highly appreciated.