Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Transfering file from web service to c++ via named pipes

Transfering file from web service to c++ via named pipes

Scheduled Pinned Locked Moved ASP.NET
csharpquestionc++asp-netdata-structures
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Al_Pennyworth
    wrote on last edited by
    #1

    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?

    L 1 Reply Last reply
    0
    • A Al_Pennyworth

      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?

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      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?

      A 1 Reply Last reply
      0
      • L led mike

        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?

        A Offline
        A Offline
        Al_Pennyworth
        wrote on last edited by
        #3

        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.

        L 1 Reply Last reply
        0
        • A Al_Pennyworth

          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.

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups