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. General Programming
  3. C#
  4. base64Binary

base64Binary

Scheduled Pinned Locked Moved C#
helpquestion
3 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.
  • J Offline
    J Offline
    JustRonald
    wrote on last edited by
    #1

    I am trying to create an application that will talk with a webservice. This webservice needs the following information:

      <request>
        <EmailAddress>string</EmailAddress>
        <Filename>string</Filename>
        <FileData>base64Binary</FileData>
      </request>
    

    So I wrote the following:

    string FileDataBase64Binary;
    SoapBase64Binary base64Binary;
    FileDataBase64Binary = "???";
    base64Binary = SoapBase64Binary.Parse(FileDataBase64Binary);
    request.FileData = base64Binary;

    What should be the right code? Any help would be greatly appriciated.

    M 1 Reply Last reply
    0
    • J JustRonald

      I am trying to create an application that will talk with a webservice. This webservice needs the following information:

        <request>
          <EmailAddress>string</EmailAddress>
          <Filename>string</Filename>
          <FileData>base64Binary</FileData>
        </request>
      

      So I wrote the following:

      string FileDataBase64Binary;
      SoapBase64Binary base64Binary;
      FileDataBase64Binary = "???";
      base64Binary = SoapBase64Binary.Parse(FileDataBase64Binary);
      request.FileData = base64Binary;

      What should be the right code? Any help would be greatly appriciated.

      M Offline
      M Offline
      Mustafa Ismail Mustafa
      wrote on last edited by
      #2

      Where's the problem? You have written code to answer your own problem. Could you explicitly state your issue(s)?

      "Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler "You're an idiot." John Simmons, THE Outlaw programmer "I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon

      J 1 Reply Last reply
      0
      • M Mustafa Ismail Mustafa

        Where's the problem? You have written code to answer your own problem. Could you explicitly state your issue(s)?

        "Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler "You're an idiot." John Simmons, THE Outlaw programmer "I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon

        J Offline
        J Offline
        JustRonald
        wrote on last edited by
        #3

        The WSDL file needs <FileData>base64Binary</FileData> but I'm not sure how to convert my data from string to base64Binary. So I wrote the following:

        string FileDataBase64Binary;
        SoapBase64Binary base64Binary;
        FileDataBase64Binary = "???";
        base64Binary = SoapBase64Binary.Parse(FileDataBase64Binary);
        request.FileData = base64Binary;

        Still not sure what must come by FileDataBase64Binary = "???"; Hope someone can explain to me how to do this? The files I need to send to the webservice are .zip files containing one .txt file.

        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