We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

View a Memory Stream

Thread ID:





144670 May 16,2019 03:10 PM UTC May 17,2019 12:33 PM UTC Vue 3
Tags: PDF Viewer
William Morgenweck
Asked On May 16, 2019 03:10 PM UTC

Can the PDF Viewer render a MemoryStream?  I've seen a couple of threads in the Javascript area asking and debating but all of the links don't work to any of the samples.   The documentation for the Vue component is pretty non- existent so should I try to get things working using the Javascript version if it is possible?  What I'm hoping to do is to get a .NET Web API  to take parameters and generate a PDF memorystream report.  Is this possible?

Mohan Selvaraj [Syncfusion]
Replied On May 17, 2019 07:24 AM UTC

Hi William,  
Thank you for contacting Syncfusion support.  
We can render the PDF document as MemoryStream in the PDF viewer control using web api controller. We have created the PDF viewer web API controller to load the PDF document as MemoryStream and Vue application. Please find the sample from the following link. 
UG documentation: 
Please run the web service application and provide the url to serviceUrl property before launching the Vue sample in the browser.  
Kindly refer the below links for creating PDF viewer web service. 
Please let us know the more details about your requirement if the provided solution does not meet your requirement. 
Mohan S. 

William Morgenweck
Replied On May 17, 2019 11:11 AM UTC

That looks perfect.  I'll try to convert the controller to VB.Net since my WEB API is VB. You don't happen to have a convert VB version available, do you?

Mohan Selvaraj [Syncfusion]
Replied On May 17, 2019 12:33 PM UTC

Hi William, 
We can use web service application in VB platform and created the same for your reference. Please find the PDF viewer web service project in vb from the below link. 
Note: Please run the web service application and set the web service application url to the serviceUrl property of PDF Viewer control (ex: serviceUrl: 'http://localhost:64220/api/PdfViewer' ).  
 Mohan S  


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon