Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Correct Data Type for Images

Status
Not open for further replies.

gwinn7

Programmer
Feb 10, 2001
1,004
US
Does any one know which PostgreSQL data type to use for loading pictures (ie. JPG images)?

We have a Microsoft Access database loaded up with about 8000 images. The data type in Access to store this is in "OLE OBJECT". What is the equivalant, if any, in PostgreSQL? The obvious goal at this point is to load those pictures in to PostgreSQL and serve them through Apache.

I went through the PostgreSQL official Administrator's Guide and the User's Guide, but their explanations weren't that conclusive.

FYI: Running Red Hat v7.1

Thanks,
Gary
 
LOB, BLOB, or Binary Large Object, are the standard terms for this datatype. But PostgreSQL uses the keyword "OID" when creating the column, which stands for Object Identifier. -------------------------------------------

"Calculus is just the meaningless manipulation of higher symbols"
                          -unknown F student
 
You can use bytea data type which is better if your image size is not very large.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top