Results 1 to 2 of 2
  1. #1
    sen_thil is offline Member
    Join Date
    Dec 2011
    Rep Power

    Default Constructing MIME message from BLOB

    Right now we have the capability of saving the Mail message as BLOB in DB if sending gets failed for use later, The BLOB we are creating from the mail message is encoded using Base64 encoder since it has the attachments in it. By the RFC specification when converting to a BLOB, a boundary is created for each part in the mail message. Due to the compatibility with the RFC 934, the boundary is preceded with the hyphen(-).
    Since hyphen is not specified in the Base64 table its throwing the Exception as "error in the encoded stream, needed at least 2 valid base64 characters" while decoding with Base64 decoder. We tried with splitting each part based on the boundary, but it has the header information along with the part and its throwing the exception "Error in inputstream".

  2. #2
    ozzyman's Avatar
    ozzyman is offline Senior Member
    Join Date
    Mar 2011
    London, UK
    Blog Entries
    Rep Power

    Default Re: Constructing MIME message from BLOB

    It looks like you know the answer to your question...don't use RFC 934

Similar Threads

  1. Constructing a HashMap
    By azalea in forum New To Java
    Replies: 2
    Last Post: 11-03-2011, 04:19 PM
  2. Problem with constructing an ArrayList
    By Diplo in forum New To Java
    Replies: 5
    Last Post: 12-07-2009, 04:52 PM
  3. Constructing the Interface!
    By myskynim in forum New To Java
    Replies: 3
    Last Post: 11-19-2009, 10:51 AM
  4. Java - OLE or BLOB - MS Access
    By hkansal in forum Advanced Java
    Replies: 4
    Last Post: 02-04-2009, 07:47 AM
  5. Need help with constructing code
    By Nine0joe in forum New To Java
    Replies: 6
    Last Post: 05-09-2008, 03:14 AM

Posting Permissions

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