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. Increase the quota : XmlDictionaryReaderQuotas

Increase the quota : XmlDictionaryReaderQuotas

Scheduled Pinned Locked Moved C#
xmlhelpquestion
15 Posts 6 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 abbd

    Hello, I use this method to encode in base 64 :

    [WebMethod]
    public string EncodeFileTo64Digits(string File_Path_input)
    {
    string base64;
    using (FileStream fs = new FileStream(File_Path_input, FileMode.Open, FileAccess.Read))
    {
    string ext;
    byte[] data = new byte[fs.Length];
    fs.Read(data, 0, data.Length);
    base64 = Convert.ToBase64String(data);
    ext = base64;
    return ext;
    }
    }

    Thank you verry mutch for hlep me to resolve this great problem.

    P Offline
    P Offline
    Pete OHanlon
    wrote on last edited by
    #4

    You seem to be intent in persisting in this behaviour. Instead of adding this snippet here, you should amend the question below because that contains the original question, along with answers that have already been given. I will say that if your intent is to download the file, you should return a byte[] and not an encoded string.

    I'm not a stalker, I just know things. Oh by the way, you're out of milk.

    Forgive your enemies - it messes with their heads

    My blog | My articles | MoXAML PowerToys | Onyx

    A K 3 Replies Last reply
    0
    • P Pete OHanlon

      You seem to be intent in persisting in this behaviour. Instead of adding this snippet here, you should amend the question below because that contains the original question, along with answers that have already been given. I will say that if your intent is to download the file, you should return a byte[] and not an encoded string.

      I'm not a stalker, I just know things. Oh by the way, you're out of milk.

      Forgive your enemies - it messes with their heads

      My blog | My articles | MoXAML PowerToys | Onyx

      A Offline
      A Offline
      abbd
      wrote on last edited by
      #5

      Hello, I am sorry, but i must return the encoded base 64 file, i consume my web service like this :

      ServiceReference2.TEST_ServicesSoapClient ff = new encode_consommation.ServiceReference2.TEST_ServicesSoapClient();
      string rr = ff.transformPDF("fqrgfqfsgfdsgfg.....");

      I checked the all execution step, so they stops at the return of my string. Thank you verry mutch.

      modified on Monday, December 27, 2010 4:37 AM

      K 1 Reply Last reply
      0
      • P Pete OHanlon

        You seem to be intent in persisting in this behaviour. Instead of adding this snippet here, you should amend the question below because that contains the original question, along with answers that have already been given. I will say that if your intent is to download the file, you should return a byte[] and not an encoded string.

        I'm not a stalker, I just know things. Oh by the way, you're out of milk.

        Forgive your enemies - it messes with their heads

        My blog | My articles | MoXAML PowerToys | Onyx

        A Offline
        A Offline
        abbd
        wrote on last edited by
        #6

        Hello, I test my web service with soapUI, my methos return the correct encode base 64. I call the web service correctly ?

        1 Reply Last reply
        0
        • A abbd

          Hello, I am sorry, but i must return the encoded base 64 file, i consume my web service like this :

          ServiceReference2.TEST_ServicesSoapClient ff = new encode_consommation.ServiceReference2.TEST_ServicesSoapClient();
          string rr = ff.transformPDF("fqrgfqfsgfdsgfg.....");

          I checked the all execution step, so they stops at the return of my string. Thank you verry mutch.

          modified on Monday, December 27, 2010 4:37 AM

          K Offline
          K Offline
          Keith Barrow
          wrote on last edited by
          #7

          You still haven't learned: no-one is going to answer a question here as yip have re-posted. Edit your original question (which, BTW, missed all the vital information you have posted since).

          Sort of a cross between Lawrence of Arabia and Dilbert.[^]
          -Or-
          A Dead ringer for Kate Winslett[^]

          realJSOPR _ 2 Replies Last reply
          0
          • P Pete OHanlon

            You seem to be intent in persisting in this behaviour. Instead of adding this snippet here, you should amend the question below because that contains the original question, along with answers that have already been given. I will say that if your intent is to download the file, you should return a byte[] and not an encoded string.

            I'm not a stalker, I just know things. Oh by the way, you're out of milk.

            Forgive your enemies - it messes with their heads

            My blog | My articles | MoXAML PowerToys | Onyx

            K Offline
            K Offline
            Keith Barrow
            wrote on last edited by
            #8

            5'd, if only to keep you in the same rep zone as JSOP :-)!

            Sort of a cross between Lawrence of Arabia and Dilbert.[^]
            -Or-
            A Dead ringer for Kate Winslett[^]

            P 1 Reply Last reply
            0
            • K Keith Barrow

              5'd, if only to keep you in the same rep zone as JSOP :-)!

              Sort of a cross between Lawrence of Arabia and Dilbert.[^]
              -Or-
              A Dead ringer for Kate Winslett[^]

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #9

              :laugh: Thanks Keith. Surprisingly enough, I'm not actually in competition with JSOP. He's written far more articles than me so his position would be difficult to assail - what I do want though, is for JSOP and me to be able to beat CG on combined post counts.

              I'm not a stalker, I just know things. Oh by the way, you're out of milk.

              Forgive your enemies - it messes with their heads

              My blog | My articles | MoXAML PowerToys | Onyx

              realJSOPR 1 Reply Last reply
              0
              • K Keith Barrow

                You still haven't learned: no-one is going to answer a question here as yip have re-posted. Edit your original question (which, BTW, missed all the vital information you have posted since).

                Sort of a cross between Lawrence of Arabia and Dilbert.[^]
                -Or-
                A Dead ringer for Kate Winslett[^]

                realJSOPR Offline
                realJSOPR Offline
                realJSOP
                wrote on last edited by
                #10

                I have popcorn, and I'm watching with great interest...

                ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                -----
                You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                -----
                "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                1 Reply Last reply
                0
                • P Pete OHanlon

                  :laugh: Thanks Keith. Surprisingly enough, I'm not actually in competition with JSOP. He's written far more articles than me so his position would be difficult to assail - what I do want though, is for JSOP and me to be able to beat CG on combined post counts.

                  I'm not a stalker, I just know things. Oh by the way, you're out of milk.

                  Forgive your enemies - it messes with their heads

                  My blog | My articles | MoXAML PowerToys | Onyx

                  realJSOPR Offline
                  realJSOPR Offline
                  realJSOP
                  wrote on last edited by
                  #11

                  I don't think that will ever happen. CG has far too many hardware and software problems and disputes with Qantas, Telstra, and TicketMaster to complain about, and every couple of weeks, his post count goes up by 1000 or so while he describes his latest travails... :)

                  ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                  -----
                  You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                  -----
                  "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                  T P K 3 Replies Last reply
                  0
                  • K Keith Barrow

                    You still haven't learned: no-one is going to answer a question here as yip have re-posted. Edit your original question (which, BTW, missed all the vital information you have posted since).

                    Sort of a cross between Lawrence of Arabia and Dilbert.[^]
                    -Or-
                    A Dead ringer for Kate Winslett[^]

                    _ Offline
                    _ Offline
                    _Erik_
                    wrote on last edited by
                    #12

                    I guess it wouldn't be worth to answer him in the right thread... He does not read the answers...

                    1 Reply Last reply
                    0
                    • realJSOPR realJSOP

                      I don't think that will ever happen. CG has far too many hardware and software problems and disputes with Qantas, Telstra, and TicketMaster to complain about, and every couple of weeks, his post count goes up by 1000 or so while he describes his latest travails... :)

                      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                      -----
                      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                      -----
                      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                      T Offline
                      T Offline
                      thatraja
                      wrote on last edited by
                      #13

                      John Simmons / outlaw programmer wrote:

                      I don't think that will ever happen.

                      No john, surely your Tag team can beat CG as Pete said. :) I wish CG will get good things & good net connection soon quickly.

                      thatraja |Chennai|India|


                      Brainbench certifications
                      My Dad had a Heart Attack on this day so don't...

                      1 Reply Last reply
                      0
                      • realJSOPR realJSOP

                        I don't think that will ever happen. CG has far too many hardware and software problems and disputes with Qantas, Telstra, and TicketMaster to complain about, and every couple of weeks, his post count goes up by 1000 or so while he describes his latest travails... :)

                        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                        -----
                        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                        -----
                        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                        P Offline
                        P Offline
                        Pete OHanlon
                        wrote on last edited by
                        #14

                        This is true. It's a worthy goal though, and some people want me to post follow up articles on jQuery, so I might be able to push my article count up that way. That should help us beat CG.

                        I'm not a stalker, I just know things. Oh by the way, you're out of milk.

                        Forgive your enemies - it messes with their heads

                        My blog | My articles | MoXAML PowerToys | Onyx

                        1 Reply Last reply
                        0
                        • realJSOPR realJSOP

                          I don't think that will ever happen. CG has far too many hardware and software problems and disputes with Qantas, Telstra, and TicketMaster to complain about, and every couple of weeks, his post count goes up by 1000 or so while he describes his latest travails... :)

                          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                          -----
                          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                          -----
                          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                          K Offline
                          K Offline
                          Keith Barrow
                          wrote on last edited by
                          #15

                          I read somewhere (lounge IIRC) that 1O'H+ 1JSOP currently has an exhange rate of 1G.

                          Sort of a cross between Lawrence of Arabia and Dilbert.[^]
                          -Or-
                          A Dead ringer for Kate Winslett[^]

                          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