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

  • Home
  • SEARCH
  • 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 8591135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:27:25+00:00 2026-06-11T23:27:25+00:00

What i want to do: I need to do a POST to a PHP

  • 0

What i want to do:

I need to do a POST to a PHP Service using HttpWebRequest, and upload an image file as a Base64(can’t change this) string along with other parameters and write the Base64 data in a database.

What i do:

  • So far i am able to upload the Base64 data representing an image
  • PHP side do receive the data and write it to the database

What doesn’t work

  • When i am trying to read the Base64 data from the database and write it on the disk, it write the file but i am unable to open the file as an image

Thanks in advance!

  • 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-11T23:27:26+00:00Added an answer on June 11, 2026 at 11:27 pm

    The problem was actually in the Base64 string where in C# there was some ‘+’ symbols and on the PHP side the ‘+’ were removed for some reasons.

    I just added the following line:

    $data = str_replace(' ', '+', $data);
    

    Now all work fine.

    Thanks!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I post JSON objects to a web service, through cURL in php?
edited: This is what i need: sendpost = function(a,b,c){ return jQuery.post('inc/operations.php', {a:b}, c, json);
I need a little help getting this script doing what I want it to.
I need a jquery slideshow with div popup i want to show my image
I need to build a DSL Solution using MsBuild and want to be able
I want to download a file and need to check the response status code
I have just started PHP and mySQL and need to know if this is
I am using a custom post type in my wordpress theme, and I need
I want to make a POST to a PHP site from a C# WinForm
Sounds like a weird question, but say I have something like this: $.post( /myajax.php,

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.