dbTalk Databases Forums  

How to determine file's mimetype ?

comp.databases.oracle.server comp.databases.oracle.server


Discuss How to determine file's mimetype ? in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Maikku
 
Posts: n/a

Default How to determine file's mimetype ? - 09-27-2011 , 07:07 AM






Hi,
I'm uploading files from Linux to Oracle database with
DBMS_LOB.LoadFromFile. How can I get the mimetype of the file ?
Thanks !

Maija-Leena

Reply With Quote
  #2  
Old   
joel garry
 
Posts: n/a

Default Re: How to determine file's mimetype ? - 09-27-2011 , 11:30 AM






On Sep 27, 5:07*am, Maikku <kangasm... (AT) netti (DOT) fi> wrote:
Quote:
Hi,
I'm uploading files from Linux to Oracle database with
DBMS_LOB.LoadFromFile. How can I get the mimetype of the file ?
Thanks !

Maija-Leena
You might want to use the OS file command before loading, or are they
coming from email (where you can get it from the headers) or an OS
where the file extension says?

This looks kind of interesting:
http://www.techrepublic.com/article/...tabase/5219073

Some googling shows there might be java class answers, too.

jg
--
@home.com is bogus.
http://www.swpc.noaa.gov/advisories/bulletins.html

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.