CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890

    database sQl server ?

    Hi,

    I am dealing with several image files. I have a SQL-Server as a database server. how do I save these images in a table (as jpeg/bmp/gif) formats and later retrieve in the same format. ?

    I need to store video also in database (NOT ON HARDDISK FILE).

    any hints on this topic would be appreciated ...
    Thanks,
    Paresh

  2. #2
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    265
    SQL server has an 'image' field type. Using this, you merely convert the image into an array of bytes(try saving it to a MemoryStream) and insert it the usual way.
    The same goes for video(image can be used for any kind of binary data).

  3. #3
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    thanks ,
    i will try to save images and let you know.

    Paresh

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