Results 1 to 2 of 2
  1. #1
    Smirgu is offline Member
    Join Date
    Apr 2010
    Posts
    2
    Rep Power
    0

    Default Problem with Base64 encoding

    I'm using org.apache.commons.codec.binary for base64 encoding. For at least short text files it works, but when I try to encode eg. a JPEG image, there is a problem. After decoding the pixel amount is correct and it shows it as an image, but the image is somehow scrambled. For these JPEG files, about two thirds of the image blocks are messed up, and the last third of the blocks are shown as mere gray.

    Any ideas what could cause this?

  2. #2
    Smirgu is offline Member
    Join Date
    Apr 2010
    Posts
    2
    Rep Power
    0

    Default

    Solved. The w3s base64encoder did the job without problems.

Similar Threads

  1. Encoding Problem
    By GJ! in forum Advanced Java
    Replies: 6
    Last Post: 01-12-2010, 09:09 PM
  2. Lucene Indexer Encoding problem
    By svirid in forum Lucene
    Replies: 5
    Last Post: 02-18-2009, 10:26 AM
  3. encoding issue in jsp
    By sams11 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 11-25-2008, 08:55 AM
  4. Include Base64 encoded data into XML
    By afolli in forum New To Java
    Replies: 0
    Last Post: 09-11-2008, 11:22 AM
  5. Some help with encoding...
    By nm123 in forum Networking
    Replies: 0
    Last Post: 04-15-2008, 01:22 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •