LoadFromStream does not accept an html document

Discussions about DocuVieware integration in GdPicture.NET.
Post Reply
chrisb
Posts: 1
Joined: Fri Oct 01, 2021 11:30 am

LoadFromStream does not accept an html document

Post by chrisb » Fri Oct 01, 2021 11:34 am

I am trying to load an html file into Docuvieware to display.

The stream comes from a blob storage account and works correctly for doc files, however when trying to load an html stream, even if the contents of the stream are as simple as:

Code: Select all

<html><h1>Hey</h1></html>
Then the call

Code: Select all

 var status = docuVieware.LoadFromStream(doc.stream, OwnStream: false);
returns the status "UnsupportedFormat"

Is this functionality supported? If I pass in the DocumentName parameter with a ".html" suffix the document is still unsupported. Am I missing something?

Thanks

Chris

User avatar
Fabio
Posts: 173
Joined: Thu Aug 27, 2020 9:57 am

Re: LoadFromStream does not accept an html document

Post by Fabio » Mon Oct 04, 2021 9:49 am

Hello Chris,

Are you using the last version of DocuVieware? (the HTML support has been implemented on version 3.1.107).

Here is the code I used for testing:

Code: Select all

System.IO.Stream stream = new System.IO.FileStream(@"D:\example.html", System.IO.FileMode.OpenOrCreate);
GdPictureStatus status = new GdPictureStatus();
status = e.docuVieware.LoadFromStream(stream, false);
With best,
Fabio

Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 1 guest