Member Avatar for Moirae

Hello everyone!
I have field in database table that is image type. I have to create model for this table (mvc3) and I don't know which data type to use. Any hints??

Recommended Answers

All 2 Replies

Do not save the content of file (image file) into database. Store application relative path of image instead. BTW you can use BLOB (oracle), Image (MS-SQL) field type.

Hello everyone!
I have field in database table that is image type. I have to create model for this table (mvc3) and I don't know which data type to use. Any hints??

I out project I use Nvarchar(Max ) for Image

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.