Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2012-04-05
2
Medium Priority
?
221 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:Curtis Long
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:Curtis Long
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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 …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

971 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