Results 1 to 4 of 4
  1. #1
    thamizhisai is offline Member
    Join Date
    Apr 2008
    Posts
    16
    Rep Power
    0

    Default binary conversion

    Coulde anyone post a code on how to convert images to binary? I need to store the data in my database using an http connection. also how do i retrieve the image from the database?

  2. #2
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    10

    Default

    What have you done so far?
    freedom exists in the world of ideas

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,370
    Blog Entries
    1
    Rep Power
    22

  4. #4
    thamizhisai is offline Member
    Join Date
    Apr 2008
    Posts
    16
    Rep Power
    0

    Default jsp coding

    i browsed the image by clicking d browse button.if i press submit button means d image automatically stored in db.then i have 2 retrieve d image separately......................





    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>

    <body>
    <form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
    <p>&nbsp;</p>
    <p>
    <label for="file1"></label>
    <input type="file" name="file1" id="file1" />
    </p>

    <p>
    <label for="file2"></label>
    <input type="file" name="file1" id="file1" />
    </p>

    <p>
    <label for="file3"></label>
    <input type="file" name="file1" id="file1" />
    </p>

    <p>
    <label for="file4"></label>
    <input type="file" name="file1" id="file1" />
    </p>
    <p>
    <label for="submit"></label>
    <input type="submit" name="submit" id="submit" value="Submit" />
    </p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    </form>
    </body>
    </html>

Similar Threads

  1. Music File Conversion
    By Dave Almighty in forum Advanced Java
    Replies: 11
    Last Post: 04-21-2008, 03:30 AM
  2. bytearray to string conversion
    By mew in forum New To Java
    Replies: 1
    Last Post: 01-28-2008, 11:39 AM
  3. String to Integer conversion
    By eva in forum New To Java
    Replies: 2
    Last Post: 12-17-2007, 04:59 PM
  4. IDL to Java conversion using idltojava
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-07-2007, 01:05 PM
  5. String to Date conversion
    By javaplus in forum New To Java
    Replies: 2
    Last Post: 11-06-2007, 08:16 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
  •