Hi Jürgen,
Sorry for the inconvenience caused.
The code snippet provided in the previous update is to be implemented in PdfViewerController in WebApi(server side).
Yes, it is possible to load base64 string to the PDF Viewer control in the client side. We have created a sample which illustrates the loading of PDF document as base64 string into the PDF Viewer. The sample is available in the following link,
http://www.syncfusion.com/downloads/support/forum/125017/ze/Sample1345948333
Working with the sample:
· When the sample is ran, a web page is displayed with a dropdown list containing document names from the Data folder.
· When a value in the dropdown list is selected, the ‘change’ event is triggered. At the change event handler, an AJAX request is fired to the “GetFileStream” action method of PdfViewerController.
· At the “GetFileStream” method, the file path is got from the value in the dropdown list. Then the FileStream is created using the file path. The stream is stored in a memory stream. Then it is converted to byte array. From the byte array, the base64 string is created and returned to the client side.
· After the success of the AJAX request, the control is initialized and the base64 string is applied to load API of the PdfViewer control.
Please let us know if you have any concerns.
Regards,
Sabari Anand