CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 1999
    Posts
    5

    how to insert a image file into the database and how to retrieve it from the database



    hai everybody,

    if any one tried inserting and retrieving the image file using jdbcdbc tellme about that or tell where to refer to get detail about this.

    awaiting your replies,

    R.Karuna

  2. #2
    Join Date
    Mar 1999
    Posts
    5

    Re: how to insert a image file into the database and how to retrieve it from the database



    Hi,

    Although I have not tried it myself

    but try creating a datastream of the gif image and then try inserting it into the

    data base

    for this U will have to design Ur database such that it has a column which is

    long so that it can hold byte streams

    I hope this satisfies U

    or U may look up the site java.sun.com

    see documentation link

    find JDBC page


    If U have any question Pl mail me at


    "[email protected]"

    write FWD : Abhisheik in the subject field


    bye

    Abhishiek R Vishwakarma




  3. #3
    Join Date
    May 1999
    Posts
    20

    Re: how to insert a image file into the database and how to retrieve it from the database



    The key is defining a column as a binary large object(BLOB).


    I've done it with ODBC and DAO.


    Mark

  4. #4
    Join Date
    May 1999
    Location
    Ottawa, Ont
    Posts
    120

    Re: how to insert a image file into the database and how to retrieve it from the database



    someone knows, where I can find anything usefull about MSAccess cooperating with

    Java (it all runs already, but the sql-Syntax of MS-Access seems not to be different

    from the sql I formerly used)

  5. #5
    Join Date
    May 1999
    Location
    Ottawa, Ont
    Posts
    120

    Re: how to insert a image file into the database and how to retrieve it from the database



    someone knows, where I can find anything usefull about MSAccess cooperating with

    Java (it all runs already, but the sql-Syntax of MS-Access seems not to be different

    from the sql I formerly used)

  6. #6
    Join Date
    Apr 1999
    Posts
    11

    Re: how to insert a image file into the database and how to retrieve it from the database



    you can do it on the server side with ODBC API.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured