dbTalk Databases Forums  

How can I store a file(such as *.jpg,*.doc and so on) to Berkeley DB?

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss How can I store a file(such as *.jpg,*.doc and so on) to Berkeley DB? in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jiangminjie@gmail.com
 
Posts: n/a

Default How can I store a file(such as *.jpg,*.doc and so on) to Berkeley DB? - 12-08-2005 , 01:03 AM






How can I store a file(such as *.jpg,*.doc and so on) to Berkeley DB?


Reply With Quote
  #2  
Old   
Patrick Schaaf
 
Posts: n/a

Default Re: How can I store a file(such as *.jpg,*.doc and so on) to Berkeley DB? - 12-08-2005 , 02:12 AM






jiangminjie (AT) gmail (DOT) com writes:

Quote:
How can I store a file(such as *.jpg,*.doc and so on) to Berkeley DB?
Why would you want to do that?

You would do it the same way you would store any other item: read it into
a contiguous piece of memory, set up a DBT, and call ->put().

best regards
Patrick


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.