Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Make input of type field send data in base64 rather than binary

Posted on 2012-04-05
2
Medium Priority
?
219 Views
Last Modified: 2012-04-12
I'm writing a simple upload form in html4. It's a very simple process, usually. The problem I'm running into, is for the image data, the server is expecting base64 and will process anything I send it as base64, resulting in corrupt images. Is there some kind of attribute I can set for my form? If not, could I set up some javascript to encode the data into base64 before sending it to the server?
0
Comment
Question by:HDM
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 37814723
If you are using a standard HTML file upload form, you will have to make it a two-part process.  Upload to your server side page, encode it there and pass it on.  There is nothing in the standards I can find that will allow you to do anything to the file stream to change the format or content when you click on submit.  'base64' is not mentioned anywhere in the standards.
0
 

Author Closing Comment

by:HDM
ID: 37840111
Looks like this is going to have to be a feature for a future release after we get the server to accept binary data.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question