I want to send a file to the server in binary, not using the normal form post method because that method encoding is not binary. The reason is that I have a IPad application which sends a binary file to the server and I need to do the same in JQuery in a web browser.
-
Possible duplicate stackoverflow.com/questions/166221/…Amar Palsapure– Amar Palsapure2012-02-07 06:34:33 +00:00Commented Feb 7, 2012 at 6:34
-
But that encoding is enctype: 'multipart/form-data' which is not binary, its something elsePhil– Phil2012-02-07 06:38:13 +00:00Commented Feb 7, 2012 at 6:38
Add a comment
|
1 Answer
Do you mean you want to use base64 encoding? Try this: http://phpjs.org/functions/base64_encode:358