Transfering file from web service to c++ via named pipes
-
I have an application that is written in c++ and I have an asp.net webservice (c# behind) that has two methods. One of the methods is a file upload, where the goal is to pass a file via the web service to the application. I have found various examples on how to do file transfers but my webservice will not have write permission to the machine. So I need to take the byte[] that is essentially the file, serialize it, and send it to my application. I have the majority of the code but I am lost on two aspects: 1) I not sure how to take the byte[] and serialize it. 2) I am not sure what I would need to do in my C++ app to accept the serialized XML with the byte array, meaning how do I decode the byte array. Any suggestions?
-
I have an application that is written in c++ and I have an asp.net webservice (c# behind) that has two methods. One of the methods is a file upload, where the goal is to pass a file via the web service to the application. I have found various examples on how to do file transfers but my webservice will not have write permission to the machine. So I need to take the byte[] that is essentially the file, serialize it, and send it to my application. I have the majority of the code but I am lost on two aspects: 1) I not sure how to take the byte[] and serialize it. 2) I am not sure what I would need to do in my C++ app to accept the serialized XML with the byte array, meaning how do I decode the byte array. Any suggestions?
-
Are you sure you need to do all of this just to circumvent the permissions issue? I mean a simple permission change will solve the problem right?
I wish more than anything that I could implement the permission change. Unfortunately, the web service will be a corporate webservice applied in different locations and I have been mandated that there are to be no permissions in writing to the drive.
-
I wish more than anything that I could implement the permission change. Unfortunately, the web service will be a corporate webservice applied in different locations and I have been mandated that there are to be no permissions in writing to the drive.
Al_Pennyworth wrote:
and I have been mandated that there are to be no permissions in writing to the drive.
However you are going to write the the drive anyway by circumventing the problem with a Rube Goldberg[^] implementation? You gotta love corporate culture! Good luck you're going to need it.