Results 1 to 3 of 3

Thread: Image Storing

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2001
    Location
    India
    Posts
    134

    Image Storing

    I would like to know how do we store an image in a picture box / image control on to the database and also as a physical file in JPG or GIF format.

    I would also like to know in what format it will be stored if I use a BLOB field to store in Database.


    Thanks in Advance.
    Pavan Kumar

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well you can use the SavePicture statement to save a picture that is in a picturebox to the hard drive. Then you could open the file for binary access read, and then read the entire file into a String variable and save that into a database.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2001
    Location
    India
    Posts
    134
    Thanx for ur reply.

    but if i use the SavePicture Statement it saves it .BMP format which occupies a lot of space

    I need to store the file in JPEG or GIFF format which occupies lesser amount of space.

    Can u help me with this.

    Thanx in Advance
    Pavan Kumar

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