I'm intregrating Alfresco into a Struts 2 portlet over Liferay.
I'm using the web services API, and I'm able to upload any file and download almost any file(jpg, xls, doc, gif, txt, …). The problem is that when the file is a PDF, I get a 8k(always 8k it doen't mid the size of the file) file that the Reader can't open it.
The file opens using the Alfresco application directly, so it has been uploaded properly.
If I open the 8k file I get with a text editor this is what I get
%PDF-1.4
%äüöß
2 0 obj
<</Length 3 0 R/Filter/FlateDecode>>
stream
xœ•UËjÝ0 Ýû+´ ØÑè-0‚û,í.BWmS(MK²Éïw ò#7v Eš93çÌŒ®î@=7J«Vã6€Á5fZŸ~ª¯7ê/_Ò÷ô«Ù qºË*ØÔy5üP·gP&¨á¾×P†ßÍih.× Þwæ¥ D< îïzm
ôÚ Ók§=ý Åö:–oç5,
a5vÚˆm%V+ aËÃÙílsñ½Þ•ÖÖÄ÷›y&þoq> Ùciq;ó–ÿO Àoa»h»¸Êé¼ÁÉÅ|B͆òØðɺs+QîHlÌ ôV~ ±í w€Òšª@f²n†™@| ‚Á`£¹œº ¦‚íxÓ\Ô£’ë È RFdçp™ÛU ‹/ æß šÛ N ÿ©
B 0b