Active Oldest Votes. Dila Sachi. Dila 1, 7 7 silver badges 14 14 bronze badges. Thanks Sachi. Your solution is super easy and simple. Thanks for sharing. Hi Sachi. However, nothing happens on an IE browser. There are no error messages either. I'm working on Angular 6.
Hence, I un-commented all the entries in pollyfills. Yet, it doesn't work. Sir, I want to know that what is the largest size of PDF can converted into base64 , or if you have any supporting article blog anything to help me with that. Sadhana , 11 september at Hello, I am looking for a way to convert a pdf file to base64 in Javascript using FileReader. I have the path of the pdf file, but not able to convert to base Can you provide some guidance? Matt , 29 march at Is it possible to specify the default page to show?
By default, page 1 is shown Hi, I have the same doubt, how did you manage to solve this problem? Right now we're concentrating on getting the file to the client with the content intact. Add a comment. Active Oldest Votes. So after you install FileSaver. We've tried FileSaver. What are you using in the backend?
I had to fs. Spring is our backend. The file is only modified when it gets to Angular, when we inspect the data object. Over the wire it's fine. GET from another Spring server is fine. GET from Postman saves the file to disk and it's uncorrupted.
The only time we have trouble is trying to get it download to our Angular client :- — Mike Summers. What version of Angular are you using?
Have you logged the data from the response to make sure the data is what you're expecting it to be? I also noticed you're using. Yes, over the wire the data is a pdf file, save it to disk and Acrobat opens it without a problem. Asked 4 years ago. Active 3 years, 10 months ago. Viewed 3k times. I build an Ionic 3 app and I want to display a preview of an base64 encoded file. I really don't know what I can do to solve this problem. Someone have a solution?
Pivet V. Pivet 1, 3 3 gold badges 24 24 silver badges 54 54 bronze badges. Add a comment. Active Oldest Votes.
0コメント