PDA

View Full Version : lưu hình trong database



kazujo
13-05-2004, 06:50
trong MS SQL có hỗ trợ kiểu dữ liệu là image, đó phải là kiểu dữ liệu để lưu hình không .Làm sao dùng kiểu dữ liệu

lam_lvl
29-06-2004, 22:05
Kiểu dữ liệu image trong MS SQL không phải để lưu hình ảnh ! đừng nhầm lẫn.
Hãy chọn kiểu binary thì mọi chuyện sẽ được giải quyết !

Chúc vui vẻ

sontinh2004
30-06-2004, 10:32
It's suggested not to use SQL server to store images. What you can do is - for example:

2/Have the images stored in window directories:
C:\Images\User01\me.gif
C:\Images\User02\you.gif
.......

2/Create an UserImage table (additional fields can be added if needed:
UserID | ImageFile
01 | C:\Images\User01\me.gif
02 | C:\Images\User02\you.gif
.............

You can have more control over the images this way because they're simply windows files.

Good luck!