Are hydraulics stronger against compression or tension?
They are still working in compression - the only difference is the extra weight of the base, which hopefully is negligible compared to the load you are lifting.

Edit: Assuming you have a dual acting system - where hydraulic fluid pushes against either side of the piston (rather than just an air jack where atmospheric pressure pushes it back) then there is no difference - other than the weight of the outer cylinder.