You almost assuredly have some sort of MIME object being submitted with a Content-Transfer-Encoding of quoted-printable, but the receiver doesn't understand quoted-printable. I have no idea what your actual problem might be, but you might be able to figure it out by studying how MIME works (warning: major hackery).
http://en.wikipedia.org/wiki/Quoted-printable http://en.wikipedia.org/wiki/MIME Jeff On Mon, Dec 20, 2010 at 10:36 AM, Max <[email protected]> wrote: > Hi, > > I explored the below thread, but I'm still not sure how to fix the problem. > Is it that the file is encoded as one format originally and then GAE tries to > encode it differently? > > thanks > MG > > On Dec 5, 2010, at 1:56 AM, Didier Durand wrote: > >> Hi, >> >> somebody already had a problem similar to yours and found the issue >> and its solution: >> http://groups.google.com/group/google-appengine-python/browse_thread/thread/0ac4ab5266fb3781 >> >> Hope it helps >> didier >> >> On Dec 4, 9:04 pm, Max <[email protected]> wrote: >>> Hi, >>> >>> My GAE application strips attachments from inbound emails and saves them as >>> byte[]. Objectify translates the byte[] to a >>> com.google.appengine.api.datastore.Blob (does not utilize BlobStore). For >>> some files, it embeds equal signs in places where the original document >>> doesn't have any equal signs. I've found that MS documents and HTML are >>> rather tolerant of this behavior, but PDFs tend to get corrupt when this >>> happens. Does anyone know why these equal signs are added in seemingly >>> random places? Any other advice to get around this? >>> >>> Below is an example of the contents of a PDF from the "more" command. You >>> can see the equal signs from the second representation of the file. >>> >>> Original file (Good): >>> 1 0 obj >>> << >>> /CreationDate (D:20101203120005) >>> /Producer (SCS2PDF v1.0 (\251 BeppeCosta, 2005)) >>> /Title (PRINT1) >>> >>> endobj >>> 2 0 obj >>> << >>> /Type /Catalog >>> /Pages 3 0 R >>> >>> endobj >>> >>> File Snippet After Saving to DataStore (Bad): >>> 1 0 obj >>> << >>> /CreationDate = >>> (D:20101203120005) >>> /Producer (SCS2PDF v1.0 (\251 BeppeCosta, = >>> 2005)) >>> /Title (PRINT1) >>> >>> endobj >>> 2 0 obj >>> << >>> /Type = >>> /Catalog >>> /Pages 3 0 R >>> >>> endobj >>> >>> Any thoughts? >>> thanks! >>> MG >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine for Java" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/google-appengine-java?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
