Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > JAVA > Determing the type of file on retrieving from BLOB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-08-03, 00:49
deep_ar78 deep_ar78 is offline
Registered User
 
Join Date: Oct 2003
Location: Delhi, India
Posts: 16
Determing the type of file on retrieving from BLOB

I want to know the header/ or type of file when i get this field from Oracle BLOB as at run time I dont know which type of file I had uploaded to my BLOB field. I guess every file has some header that recognizes the type of file, now i want to get this information and accordingly set my content type to that. ie. like application/pdf.....or image/gif.......or html/text like that...please help me...
Reply With Quote
  #2 (permalink)  
Old 12-08-03, 15:08
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 2,227
Re: Determing the type of file on retrieving from BLOB

Quote:
Originally posted by deep_ar78
I guess every file has some header that recognizes the type of file


Your guess is incorrect. You will need to save this information yourself when you create the record to be able to retrieve it later.
__________________
===
Nick Ivanov
Freelance database consultant
www.datori.org
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

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