locked
Display SVG graphics RRS feed

  • Question

  • User-1247075499 posted

    Hello

    I'am having a table on SQL Server 2005 with column:

    ID int
    ImageDescription XML
    SVG_image Varbinary(max)

    and in this table I'm storing SVG images. And I would like to know how can I display those SVG images on my ASP.NET 2 page (C#)?
    Could you please help me?

    Sunday, January 7, 2007 4:01 PM

Answers

  • User300685930 posted

    You need to write an image handler so that you can view it from an image control. Here is a very simple one.

    http://aspalliance.com/articleViewer.aspx?aId=140

    make sure you handle the case of the image is not there also

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, January 7, 2007 5:22 PM
  • User113421904 posted

    You need to write an image handler so that you can view it from an image control. Here is a very simple one.

    http://aspalliance.com/articleViewer.aspx?aId=140

    make sure you handle the case of the image is not there also

    pkellner provide a link on howto retrieving image from database:

    Retrieving Images from SqlServer in ASP .NET

    Since SVG is supported in IE(with plugin) and other recent browsers. So I think storing and retrieving of SVG in database is the main consideration.

    Here is another example: http://www.codeproject.com/cs/database/ImageSaveInDataBase.asp

    hope it helps.

     

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, January 15, 2007 1:54 AM

All replies

  • User300685930 posted

    You need to write an image handler so that you can view it from an image control. Here is a very simple one.

    http://aspalliance.com/articleViewer.aspx?aId=140

    make sure you handle the case of the image is not there also

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, January 7, 2007 5:22 PM
  • User403949901 posted

    i think that link is broken, i dont see any article there?

    Any other suggestions.

     

    And what do mean by?"make sure you handle the case of the image is not there also"

    Friday, January 12, 2007 9:44 PM
  • User113421904 posted

    You need to write an image handler so that you can view it from an image control. Here is a very simple one.

    http://aspalliance.com/articleViewer.aspx?aId=140

    make sure you handle the case of the image is not there also

    pkellner provide a link on howto retrieving image from database:

    Retrieving Images from SqlServer in ASP .NET

    Since SVG is supported in IE(with plugin) and other recent browsers. So I think storing and retrieving of SVG in database is the main consideration.

    Here is another example: http://www.codeproject.com/cs/database/ImageSaveInDataBase.asp

    hope it helps.

     

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, January 15, 2007 1:54 AM