Images from DB

Posts   
 
    
Wade
User
Posts: 76
Joined: 15-Jun-2004
# Posted on: 17-May-2008 21:19:48   

I have a team of developers that work for me in VS 2008 and we are using C#, .Net 3.5, Sql Server 2005, and WPF. As part of our application, we have several lookup tables with png images stored in the db. When llblgen pro 2.5 generates the DAL the .Net Data type is a byte[]. I am having problems with WPF getting it to display the images.

I would prefer to have the DAL or BLL do the transformation of the byte[] to an image. Does someone know how to do this in llblgen pro? I understand a type converter might be best but does someone have this already coded they wouldn't mind sharing?

I looked at the sample type converter but it is very simplistic. I was hoping one of the bright people here already have this solved.

Thanks, Wade Beasley

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 18-May-2008 20:08:39   

I'm not sure but I think would be easiest if you use Image type at DB (SQLServer). What kind of troubles are you facing? Check this out about WPF and some Byte-Image issues: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3117360&SiteID=1

David Elizondo | LLBLGen Support Team