I am calling FonetDriver.Render with an input MemoryStream containing the fo:root XML and expecting to get a rendered PDF in the output Stream. But I'm getting an exception instead:
Message=Invalid URI: The hostname could not be parsed.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
... I can't see what URI it might be worried about apart from the input XML does have an image embedded like this:
... However that gif is definitely accessible (not actual uri shown btw).
Here's the VB code I am using to call Render():
Dim output As System.IO.MemoryStream = New System.IO.MemoryStream
Dim driver As Fonet.FonetDriver = Fonet.FonetDriver.Make()
driver.CloseOnExit = False
input.Position = 0
... this last line gives the exception.
Any help gratefully received.