Encrpting a Image Column in SQL2005

  • Hi All

    can anyone help me or suggest how i would go about encrypting a image column within a table for sql2005. I read thru the msdn for encrypting a varchar field which was pretty handy and easy to do but i have not been able to figure out how to do the same for a image field ?

    any help or suggestions would be greatly appreciated..

    Cheers

    Dom

  • If you want to encrypt it and know how to do that with VARCHAR maybe just convert it:

    DECLARE @t TABLE (img IMAGE)

    INSERT INTO @t

    SELECT 0x48656c6c6f20576f726c64

    SELECT CONVERT(VARCHAR(MAX), CONVERT(VARBINARY(MAX), img))

    FROM @t

    Greets

    Flo

  • sensational

    thank you very much 🙂 you have made my weekend !

  • Pleased to help you. 🙂

    Flo

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply