How do I bind a Byte array to an Image in WPF with a value converter?

后端 未结 5 1340
逝去的感伤
逝去的感伤 2020-12-03 05:59

I\'m trying to bind a Byte array from my databse to a WPF Image.

My XAML:


    

        
5条回答
  •  旧时难觅i
    2020-12-03 06:27

    I believe this is actually a security permission issue. Try running with administrator privileges, and see if that works, and go from there.

    EDIT: I disagree with the downvote and comment. Take a look at this link:

    http://social.expression.microsoft.com/Forums/en-US/wpf/thread/617f6711-0373-44cc-b72c-aeae20f0f7a8/

    This user had the exact same error, and it was caused by security settings. Therefore, I stand by my answer (which may not be the cause, but it is certainly worth a try)

提交回复
热议问题