Is there any way in Hybris to obtain all the bytes from a MediaModel ? When I want to instantiate a PdfReader , I need to pass either the Path of the File OR the ByteArrayInputStream. How can I transform the MediaModel into a Byte Array?
相关问题
- Save pictures to custom folder in media library
- Digitally Sign and Verify Pdf Document using itext
- play the sound from mic using the AUGraph
- Phonegap Sound stops playing after calling playAud
- Read PDF file in a new tab of same browser
相关文章
- Safari blocks play() on video despite being called
- Render embedded image in PDF using Flying-Saucer f
- Generating .afm from .ttf [closed]
- How to convert PDF version 1.5 to version 1.4 in P
- Media Foundation MFTransform to convert MFSample f
- susy, media queries, and lt IE9 [closed]
- C# PDF Printing Library [closed]
- Choose an image from camera or gallery
You can use MediaService
Then you can pass InputStream or converting it to the format you want like ByteArrayInputStream
You can also convert it byte Array like this