• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Display blob image to JSF (using ADF BC)

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I am new to ADF BC and JSF (IDE - JDevloper 10.1.3). Before this i worked on J2ee with JSFs, JAvascripts, EJBs .... Before i could actually master that I moved into this project which requires ADF BC .
My first assignment itself is a toughie. HAve to upload an image(Jpeg ) into the database via JSF +ADF BC and then display this photo on the user profile page when i submit the user details.(I think they have a component called blobdomain that converts this data type to the blob data type of oracleand visa versa).
So i have two things to do
1. Have my application let me upload photos of users into the database
2. Display the user's photo when I have to display all his details ( which are in another table, these two tables are matched by user id).

Can anyone please tell me how i can achieve this.
Please. I am very much new to all this and i want to learn.

Sue
 
Marshal
Posts: 80960
525
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

I am afraid you have come to the wrong forum; this is not an IDE related question, and will probably have to be moved.

Jesper: suggest this might be a JDBC question.

And please go to "my private messages" for an important administrative message.

CR
 
Sheriff
Posts: 28436
104
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, it isn't really a JDBC question as such. But that's because it's really a long list of questions. Let's go through what I think is the list:

1. How do I upload files using JSF?

Well, I don't know. That's a JSF question. If JSF doesn't have that as a built-in feature then I would recommend using the Apache Commons FileUpload package.

2. Once I have the file upload, how do I put it into a blob in my database?

You seem to think that JSF and ADF have this covered. I don't know anything about that. And there isn't much point in going into detail about JDBC if they already do, so I won't.

3. How do I display one of these blobs?

That's a JSF question, too. Normally you would just provide a URL with a parameter identifying how to get the blob from the database, and write a servlet which streams the data from the blob back to the response's output stream. It would use JDBC to get the blob data if JSF didn't already have that sort of thing built in. Which I don't know if it does or not.
 
The glass is neither half full or half empty. It is too big. But this tiny ad is just right:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic