Re: Base64 strange problem
- From: Dr J R Stockton <jrs@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 14 May 2007 20:08:45 +0100
In comp.lang.javascript message <1179162644.877937.92810@xxxxxxxxxxxxxxx
glegroups.com>, Mon, 14 May 2007 10:10:44, Tamir Weiss
<tamir.weiss@xxxxxxxxx> posted:
I'm trying to send a byte array (JPG image) from javascript to a
servlet for processing.
I'm using Base64 to encode the byte array in javascript, and then a
base64 decoder in the servlet to decode it.
The thing is, that even though the String has the same length on both
sides, the decoded byte array is shorter then the original one.
I've tried a couple of different implementation on both sides, with
the same results.
It is clear what your problem is; it is that you have done something
wrong.
A better description of what code you use might render possible a more
specific response. However, as you asked no question, you may not be
expecting any answer.
It's a good idea to read the newsgroup c.l.j and its FAQ. See below.
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
.
- Follow-Ups:
- Re: Base64 strange problem
- From: Tamir Weiss
- Re: Base64 strange problem
- References:
- Base64 strange problem
- From: Tamir Weiss
- Base64 strange problem
- Prev by Date: Re: FAQ Topic - How do I run a server side script?
- Next by Date: Re: Base64 strange problem
- Previous by thread: Base64 strange problem
- Next by thread: Re: Base64 strange problem
- Index(es):
Relevant Pages
|