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. Passing binary data to web site

Passing binary data to web site

Scheduled Pinned Locked Moved ASP.NET
sysadminjsonquestion
5 Posts 5 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.
  • C Offline
    C Offline
    Chesnokov Yuriy
    wrote on last edited by
    #1

    There are URL arguments to pass to web page some text params but is there a way to pass to web site some chunks of binary data about 50-100K in size? Is there some API that allow to pass such data from custom client not IE browser. E.g. there is custom application that send to server binary data and recieves some results as binary data also.

    Чесноков

    N T E A 4 Replies Last reply
    0
    • C Chesnokov Yuriy

      There are URL arguments to pass to web page some text params but is there a way to pass to web site some chunks of binary data about 50-100K in size? Is there some API that allow to pass such data from custom client not IE browser. E.g. there is custom application that send to server binary data and recieves some results as binary data also.

      Чесноков

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Its called a web service


      I know the language. I've read a book. - _Madmatt

      1 Reply Last reply
      0
      • C Chesnokov Yuriy

        There are URL arguments to pass to web page some text params but is there a way to pass to web site some chunks of binary data about 50-100K in size? Is there some API that allow to pass such data from custom client not IE browser. E.g. there is custom application that send to server binary data and recieves some results as binary data also.

        Чесноков

        T Offline
        T Offline
        T M Gray
        wrote on last edited by
        #3

        You can't have 100k worth of data in a URL. There are limits to how long a URL can be. I don't think that all browsers have standardized on that number, but I think anything over 1000 characters is probably going to cause issues. You can save the binary information in a file and do a file upload. Then the browser will handle conversions for you. ASP.Net has large chunks of binary data that it passes back and forth called ViewState that uses encryption and base64 encoding. In C# you can certainly write a program that uses WebRequest objects to build a request from scratch. In general though it doesn't sound like you need the HTTP protocol. It would probably add a lot of overhead.

        1 Reply Last reply
        0
        • C Chesnokov Yuriy

          There are URL arguments to pass to web page some text params but is there a way to pass to web site some chunks of binary data about 50-100K in size? Is there some API that allow to pass such data from custom client not IE browser. E.g. there is custom application that send to server binary data and recieves some results as binary data also.

          Чесноков

          E Offline
          E Offline
          Ennis Ray Lynch Jr
          wrote on last edited by
          #4

          You can POST the data.

          Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane

          1 Reply Last reply
          0
          • C Chesnokov Yuriy

            There are URL arguments to pass to web page some text params but is there a way to pass to web site some chunks of binary data about 50-100K in size? Is there some API that allow to pass such data from custom client not IE browser. E.g. there is custom application that send to server binary data and recieves some results as binary data also.

            Чесноков

            A Offline
            A Offline
            Austin Cherry
            wrote on last edited by
            #5

            The easiest way would be to convert the binary to hex represented in ascii, then post the ascii text. On the server side you could convert the ascii back to binary. This adds a lot of overhead, and bloats the data, but if your not too concerned about it, its a easy way to go.

            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