Storage location depends on the source:
Always prefer the official PlayStation Store for safe, legal downloads.