6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/17/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#12486] Can't download attachments over ActiveSync
*
Your Email Address
*
Spam protection
Enter the letters below:
. ..__ __ .__ . . |\ |[__)/ `| \| | | \|| \\__.|__/|/\|
Comment
> I don't know what else to tell you. It's something wrong with your > PHP/Apache. PHP 5.3.3 is 3 years old. There were hundreds of bugs > fixed since then, and at least a dozen stream related fixes. > > My guess is that it's a bug in PHP's stream filter handling but > that's just an educated guess. If you would rather poke around the > code than update PHP, you can look in > Horde_ActiveSync_Message_AirSyncBaseFileAttachment::_checkEncoding() > or Horde_ActiveSync_Wbxml_Encoder::_outTermStr() > > The former adds a stream filter to encode the data to base64 as > required by the spec. The later is where the stream is ouput 8192 > bytes at a time. > > If you insist on not upgrading your 3 year old PHP you can read out > the stream into a string, convert it to base64 and return it from the > first method (though this will absolutely kill performance as the > entire attachment will be kept in memory, along with the larger > base64 encoded version of it).
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers