Results 1 to 4 of 4
  1. #1
    ak88 is offline Member
    Join Date
    Jul 2009
    Posts
    17
    Rep Power
    0

    Default web image retrieval

    kindly help me out with the code for retrieving images from the web and then storing it in Access.

  2. #2
    [RaIdEn] is offline Senior Member
    Join Date
    Oct 2009
    Location
    California,US
    Posts
    201
    Rep Power
    5

    Default

    ok?..Care to elaborate please .

    Showing your code would be appreciated

  3. #3
    AndreB's Avatar
    AndreB is offline Senior Member
    Join Date
    Dec 2009
    Location
    Stuttgart, Germany
    Posts
    114
    Rep Power
    0

    Default

    The first part is quite easy (here a stream from a web camera)

    Java Code:
    URL u = new URL(url);//new URL("http://63.229.55.11/ec_metros/ourcams/fridays.jpg");
    InputStream in = u.openStream();
    BufferedImage bi = ImageIO.read(in);// this is your image
    ... do save image or whatever else
    in.close();
    About access ... it is not java, isn't it ?
    "There is no foolproof thing; fools are too smart."
    "Why can't you solve my Problem ?"

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,920
    Rep Power
    19

    Default

    I have no idea whether Access is any good at storing images, or what datatype it uses, but for other (proper) DBs you'd use either a Blob, or a (more usually) a stream to send it to your insert statement.

Similar Threads

  1. image uploading and retrieval in jframe
    By deepesh in forum AWT / Swing
    Replies: 3
    Last Post: 07-25-2009, 05:33 PM
  2. JDBC data retrieval with MySQL
    By hadesflames in forum JDBC
    Replies: 5
    Last Post: 04-23-2009, 04:38 AM
  3. retrieval of tags
    By mahalakshmi in forum New To Java
    Replies: 1
    Last Post: 02-23-2009, 12:58 PM
  4. Replies: 6
    Last Post: 08-22-2008, 12:52 PM
  5. Lucene Image REtrieval 0.5.4
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 07-11-2007, 03:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •