Image and Blob

Thread is closed for posting
3 posts, 0 answers
  1. Chris
    Chris avatar
    23 posts
    Member since:
    Feb 2009

    Posted 15 Oct 2009 Link to this post

    Hi,
    I've scanned through the docs but don't see any references to the best way to store an image in a SQLServer db.

    Should I be using Telerik.Blob ?  If so, are there any examples of this in the docs?

    Should I use a byte array ?

    What are the pros and cons of each.

    Thanks
  2. IT-Als
    IT-Als avatar
    381 posts
    Member since:
    Sep 2008

    Posted 15 Oct 2009 Link to this post

    Hi Chris,

    To give you a short answer. Don't use the Telerik.Blob. As per the docs it is a class internal to OA.

    I would go for the byte array since .NET have extensive support for this type, reading/writing to/from streams of all kind.

    For MSSQL server the byte array (byte[]) is mapped to a column of the IMAGE SQL server type

    Regards

    HG
  3. Chris
    Chris avatar
    23 posts
    Member since:
    Feb 2009

    Posted 16 Oct 2009 Link to this post

    thanks
Back to Top