Newbie's questions

Discussion in 'Java' started by Zalek Bloom, Jun 5, 2003.

  1. Zalek Bloom

    Zalek Bloom Guest

    Hi,
    I want to write a Java sevlets with MySQL database that will show
    different pictures.
    Question nr 1:
    if is more efficient to store pictures on MySQL, or to store pictures
    in some directory and to keep on MySQL just names of pictures?

    Question nr 2.
    I have on MySQL a picture. My servlet must create a HTML page with
    this picture. How I can do this? What HTML tags I need to show a
    picture from MySQL?

    Thanks,

    Zalek
     
    Zalek Bloom, Jun 5, 2003
    #1
    1. Advertising

  2. Zalek Bloom

    Ken Ream Guest

    "Zalek Bloom" <> wrote in message
    news:...
    > Hi,
    > I want to write a Java sevlets with MySQL database that will show
    > different pictures.
    > Question nr 1:
    > if is more efficient to store pictures on MySQL, or to store pictures
    > in some directory and to keep on MySQL just names of pictures?


    Generally, its not going to be more efficient to take the extra step of
    retrieving the image from a databse, but if there are good business reasons
    to do it (security, customer customization,etc.) then do it.

    >
    > Question nr 2.
    > I have on MySQL a picture. My servlet must create a HTML page with
    > this picture. How I can do this? What HTML tags I need to show a
    > picture from MySQL?


    You'll want an <IMG> tag - find an HTML tutorial online for an example.
    One hint - one attribute of the IMG tag is the source of the image. If its
    in
    a directory no problem. If you store the image in your database, then write
    a servlet to retieve ther image and put the URL of the image servlet as the
    source attribute for your IMG tag.

    >
    > Thanks,
    >
    > Zalek





    -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
    http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
    -----== Over 80,000 Newsgroups - 16 Different Servers! =-----
     
    Ken Ream, Jun 6, 2003
    #2
    1. Advertising

  3. Zalek Bloom

    Jon A. Cruz Guest

    Ken Ream wrote:
    > You'll want an <IMG> tag - find an HTML tutorial online for an example.
    > One hint - one attribute of the IMG tag is the source of the image.


    http://www.htmlhelp.com
     
    Jon A. Cruz, Jul 2, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ali Syed
    Replies:
    3
    Views:
    578
    Mark McIntyre
    Oct 13, 2004
  2. pkirk25
    Replies:
    50
    Views:
    1,160
    Bill Pursell
    Oct 4, 2006
  3. Replies:
    10
    Views:
    571
  4. JohnE

    newbie with newbie questions

    JohnE, Aug 17, 2009, in forum: ASP .Net
    Replies:
    3
    Views:
    527
    Gregory A. Beamer
    Aug 17, 2009
  5. Vijay
    Replies:
    2
    Views:
    630
    Öö Tiib
    May 7, 2010
Loading...

Share This Page