Home » Developer & Programmer » JDeveloper, Java & XML » JDeveloper and BLOB (JDeveloper 10.1.3.4.0)
JDeveloper and BLOB [message #394810] Mon, 30 March 2009 06:58 Go to next message
akzirk
Messages: 3
Registered: March 2009
Junior Member
I'm new in JDeveloper.
I need help with that problem:
Table with BLOB column which contents binary file.
File is jpg, pdf, doc ...etc.
I will make "standard" adf table or form for that table.
But I need some correction for that blob:
1. If that blob column will be jpg -> that jpg file will be shows.
2. If that blob will be pdf, doc, zip ...etc -> I need to create some shortcut for download that file.
Do you have anybody some example or advice ow to do it?
Thanks, FiL
Re: JDeveloper and BLOB [message #394822 is a reply to message #394810] Mon, 30 March 2009 07:30 Go to previous messageGo to next message
Frank
Messages: 7901
Registered: March 2000
Senior Member
You will somehow have to store the filetype of the contents of the BLOB somewhere.
Having the filetype present, you can make your code do the correct stuff.
Re: JDeveloper and BLOB [message #394823 is a reply to message #394810] Mon, 30 March 2009 07:40 Go to previous messageGo to next message
akzirk
Messages: 3
Registered: March 2009
Junior Member
Problem is not in filetype. Filetype is for example in database in column "filetype". I need to know how to show picture and how to download file from blob column.
Re: JDeveloper and BLOB [message #394835 is a reply to message #394823] Mon, 30 March 2009 08:30 Go to previous messageGo to next message
Frank
Messages: 7901
Registered: March 2000
Senior Member
Google is your friend.
Re: JDeveloper and BLOB [message #394837 is a reply to message #394810] Mon, 30 March 2009 08:43 Go to previous messageGo to next message
akzirk
Messages: 3
Registered: March 2009
Junior Member
Haha. It is very funny. Do you see there some relevant results? I try to found on google some useful sulotion last week but without success.
I need to find solution for release 10, almost solutions are for release 11, including good demo from oracle pages.
Re: JDeveloper and BLOB [message #394874 is a reply to message #394837] Mon, 30 March 2009 12:13 Go to previous message
Frank
Messages: 7901
Registered: March 2000
Senior Member
Not at all meant to be funny.
It's just that when I googled, the second hit was a link to Oracle's Forum (this one), which had the same question.
It linked through to an earlier question on Oracle Forums, where the person too explicitly asked for a JDev 10 solution.

I don't know what your level of Java skills is, so I have no idea how explicit the examples need to be.
Previous Topic: loading XML file
Next Topic: Java interface to Oracle object types
Goto Forum:
  


Current Time: Fri Mar 29 03:27:02 CDT 2024