Solved

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

Posted on 2012-04-05
2
207 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
2 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

776 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