Convert binary string to pdf content type

Hi , I have a Rest api that returns pdf in binary format. I used Base64DecodeToFile in community commons module to convert it to a file and is using Download File activity to download it. The pdf loads in android and desktop browser. But it shows load error in iOS devices. I think the reason might be that we are not setting the file content type to pdf. Is there a way I can set it ? Any help would be highly appreciated. Regards, Vinod.
0 answers