If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Saving images in DB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-11-04, 12:55
javydreamercsw javydreamercsw is offline
Registered User
 
Join Date: Feb 2004
Location: Puerto Rico
Posts: 69
Saving images in DB

I'll use a DB to store info for a game I'm making and i have the follwing questions:

1. Anyone have an idea on how saving image files in the DB?
2. What column type must be used?
3. How can I encode/decode with the queries stuff wrote/read in/from that DB?
Reply With Quote
  #2 (permalink)  
Old 08-22-04, 17:21
tamamakama tamamakama is offline
Registered User
 
Join Date: Aug 2004
Posts: 2
2. You can do it using the longblob datatype.
3. Do it via:

rs.getBytes("longBlobColumnName") where rs is a ResultSet.

Good luck.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On