I am working on using SVG in a Notes db application. I am part of the way there, but I am attempting to use the shared file resource of ND6. In the following code, I have added comments for the objects that work or in other words can find and run the SVG file. I don’t seem to have found the correct syntax for accessing the file from the Domino shared file resource, or I don’t have the MIME type (currently Read Only and MIME type = image) set correctly or something else.
SVG Demonstration
SVG Demonstration
A page may have other code besides the SVG image.
Using objects allows the browser to decide what to display.
On Error Goto ErrorHandler
Dim s As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim view As NotesView
Dim vTemp As Variant
Dim iCount As Integer
Set db = s.currentDatabase
Set view = db.GetView( "Reports\Releases\Counts" )
Print "Content-type: image/svg+xml"
'Print "Content-type: text"
' === TOP ===
Print |
The MIME type needs to be image/svg+xml or the browser will reject the file (it won’t match the accept-type of the request). And the only good way to link to the resource is: