Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old October 9th, 2008, 03:19 AM
Parul Bagadia's Avatar
Familiar Sight
 
Join Date: Mar 2008
Location: India
Age: 19
Posts: 152
Default Storing image in table.

Hello,
For my project in Oracle, i need to store an images in 2 tables,... actually my front-end in the project is VB amd oracle is the back-end; so anybody has got the idea how do we store images in oracle; may be i can store the path or sth?
Reply
  #2  
Old October 9th, 2008, 02:59 PM
debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 6,870
Default

you have two options

1.store path of the file

For this you need to store tha path of the file in varchar field. retrive the name ande read the file. but in this option if the actual file is deleted you are in trouble.

2.store the actual image in the database itself

For this option you need to convert the image file into binary stream and store the same in the database table in a BLOB field. you can terive the same stream and convert back to get back the actual image.
Reply
Reply

Bookmarks

Thread Tools

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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles