Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7943677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:20:26+00:00 2026-06-04T00:20:26+00:00

I want to post some binary data to PHP. I know that I can

  • 0

I want to post some binary data to PHP.
I know that I can use php://input or $HTTP_RAW_POST_DATA to read it.
But it only can post one binary data.
I want to post two key-value data which respective value is in binary.
How can we do this in PHP?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T00:20:28+00:00Added an answer on June 4, 2026 at 12:20 am

    You can encode your binary data in Base64 using base64_encode() and base64_decode().

    Base64 encoding schemes are commonly used when there is a need to
    encode binary data that needs to be stored and transferred over media
    that are designed to deal with textual data.

    For example, you can post:

    key1=eW91cmJpbmFyeWRhdGE=&key2=YmluYXJ5YWdhaW4=
    

    And in your PHP:

    $myBinaryData1 = base64_decode($_POST['key1']);
    $myBinaryData2 = base64_decode($_POST['key2']);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to post some binary data to a website. The file can be
I want to post on twitter wall but don't want that user can edit
I have a method to which I want to post some json data, that
I want to post some data via javascript to another domain. Something like: http://www.othersite.com/submitfunnyname?name=blah
how can I post data without using NameValuePair ? I want to post String
I want to post some text data to my Facebook fans page from my
I am new to wordpress. I want to post data to some url which
I want to read data from a CSV file using microsoft text driver. Can
I want to post some data to the server, and in response, I want
I want to post some values from a simple HTML form, validate them with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.