-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attachements in Base64 are not downloaded correctly #24
Comments
I can confirm that. First error is the empty line in the beginning of the file. When i remove that line i can decode few bytes and there is another problem (maybe newline related). |
It is newline related. |
Will the fix ensure, that the bas64chars are transformed to bytes and a valid PDF is downloaded? |
I hope so 😄 |
BUMP Making attachments readable out-of-the-box would speed up my workflow ;) |
+1 on this. attachments should be human readable !:) thanks for dependency-less mail catcher |
Hello, can this be tagged maybe and build packages? thanks :) |
Sorry, was hoping to get a few more fixes in before I did a release but run out of time! But no problem, I'll do it asap 😄 |
Sure! Have them fixed then:))) thought maybe you forgot about us :))) |
it still does not enable us to download attachments. |
Excerpt from the source:
------=_Part_106_2085203044.1420709065643
Content-Type: application/pdf; name=2014826.001.pdf
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=2014826.001.pdf
JVBERi0xLjQKJaqrrK0KNCAwIG9iago8PAovQ3JlYXRvciAoQXBhY2hlIEZPUCBWZXJzaW9uIDEu
MSkKL1Byb2R1Y2VyIChBcGFjaGUgRk9QIFZlcnNpb24gMS4xKQovQ3JlYXRpb25EYXRlIChEOjIw
MTUwMTA4MTAyNDI1KzAxJzAwJykKPj4KZW5kb2JqCjUgMCBvYmoKPDwKICAvTiAzCiAgL0xlbmd0
aCAxMSAwIFIKICAvRmlsdGVyIC9GbGF0ZURlY29kZQo+PgpzdHJlYW0KeJydlndUU9kWh8+9N71Q
khCKlNBraFICSA29SJEuKjEJEErAkAAiNkRUcERRkaYIMijggKNDkbEiioUBUbHrBBlE1HFwFBuW
SWStGd+8ee/Nm98f935rn73P3Wfvfda6AJD8gwXCTFgJgAyhWBTh58WIjYtnYAcBDPAAA2wA4HCz
...
When Clicking the Download-Button it will just save the Base64 Characters in a textfile named 2014826.001.pdf and not create a valid pdf
The text was updated successfully, but these errors were encountered: