How do i get a PDF from media set using the OSDK?

I have created my OSDK and i am stuck at how i get the PDF file data in my frontend application using the OSDK, i have the id of the media item but i am not sure how i get the actual file data. Does anybody have any experience with this?