hi,
In my oracle database, I have got table in which i have got a blob column contains files of different type(ex: gif,doc,txt,pdf,....) Now how can write a single java program to read file of any type.Please explain me!!!
Thanx
-
reading different types of files from blob!!! (3 messages)
- Posted by: Rahul ..
- Posted on: June 18 2001 23:45 EDT
Threaded Messages (3)
- reading different types of files from blob!!! by Pratap Das on June 20 2001 02:09 EDT
- reading different types of files from blob!!! by Rahul .. on June 20 2001 08:19 EDT
- reading different types of files from blob!!! by Pratap Das on June 20 2001 09:49 EDT
- reading different types of files from blob!!! by Rahul .. on June 20 2001 08:19 EDT
-
reading different types of files from blob!!![ Go to top ]
- Posted by: Pratap Das
- Posted on: June 20 2001 02:09 EDT
- in response to Rahul ..
What do you mean by "read file of any type?" Do you mean you want a single program to interpret each binary format and display the file?
--Das -
reading different types of files from blob!!![ Go to top ]
- Posted by: Rahul ..
- Posted on: June 20 2001 08:19 EDT
- in response to Pratap Das
That's right! I need to write a single program to read the binary files and diplay the file
-
reading different types of files from blob!!![ Go to top ]
- Posted by: Pratap Das
- Posted on: June 20 2001 21:49 EDT
- in response to Rahul ..
Given just the binary stream, it may be tough to determine what kind of data it represents - unless you know the formats of each type and are willing to do some bit level matching.
If you are storing the type of the BLOB (i.e pdf, gif) as an additional type item, maybe you can try saving the binary object as a file and then launching an appropriate reader (say acrobat for pdf etc) to read that file. I'm not sure if this is what you are looking for, though.
--Das