New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to be able to display the document in the browser without having to download it #2
Comments
Thanks for your query and sorry for late reply. We'll investigate this requirement and will get back to you soon. |
Can you please specify the platform (.NET, Java) you're working on? |
Hi @atirtahirgroupdocs working on .net Regards |
Using GroupDocs.Viewer for .NET API you can render a documents without downloading it. API allows you to load source document from multiple sources (e.g. Amazon S3 storage, Azure Blob, Stream) and then render them into HTML, image or PDF formats. |
when I try to put a stream in the viewer I get following failure: Cannot convert from “System.IO.MemoryStream” to code:
|
Please have a look at the below code:
This is how you load a document from stream and then pass it to Viewer. |
I've seen this however this requires you have a file in the file system I need to avoid that and load directly from a stream. |
From which source/stream exactly you are loading the document (e.g. FTP, URL, S3 or blob storage)? Or can you please share your use-case/requirement. |
Directly from Microsoft exchange server. Use case: User receives an email with a bunch of attachments. Regards |
Thank you for the details. Please create a thread on our forum with reference of this GitHub issue. We'll then investigate it and you'll be notified on forum. |
Done, I would need an answer soon as I have a client expectation. If it is not possible then I would have to look at other products. Regards |
@CanerKarakurt |
We have an update. In order make your code work, you have to pass stream factory instead of stream:
Let us know if it works for you. |
I have the same problem. I am working with MVC5, I want to view document in view and I have memory stream in controller. please suggest the appropriate solution. |
Please have a look at this thread. |
Not able to download sample.zip |
@RakeshPatel2692 |
@atirtahirgroupdocs Please help me with MVC sample project . As I want to view document in MVC view. Already I have memory stream in my controller. |
@RakeshPatel2692 |
It works for me. Still I want show the document in div. Don't want to use Iframe. @atirtahirgroupdocs |
we are not using angular. Project UI is based on HTML+JQuery. Is there any way to show document in view. |
You can pass the
with this:
And in Index View you can show document in div:
|
The related project can be viewed here Display documents from a MemoryStream in ASP.NET MVC/.NET Core |
I have a scenario where I get an attachment from an exchange server and stream it back to the browser. I need to be able to render these files in the browser without having to download them on to the machine.
The text was updated successfully, but these errors were encountered: