Results 1 to 6 of 6

Thread: Commiting images in an Image box to database

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Location
    Yorkshire, UK
    Posts
    20

    Post

    Seem to be on a mission today...

    How do you store an image inside an Access Database without it taking up so much disk space.

    If i store a file which size was say 80k, once saved in the database the file size increases by 3 meg....em!...not good

    Help would be appreciated.

  2. #2
    Lively Member
    Join Date
    Jul 1999
    Posts
    78

    Post

    Are you embedding the images, or are you linking to them?

    Linking to them would probably minimize the footprint.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Location
    Yorkshire, UK
    Posts
    20

    Post

    I'm embedding them....I know i could save the file directory and filename and call the required image when the record is displayed.....dont really want to do this.

    I think the problem stems from VB takes the file size prior to resizng it into an image box. I think I need to write something that reduces the size of the image prior to commiting it to the actual database.

    Waddaya thinx?

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Location
    Yorkshire, UK
    Posts
    20

    Post

    I'm embedding them....I know i could save the file directory and filename and call the required image when the record is displayed.....dont really want to do this.

    I think the problem stems from VB taking the file size prior to resizing it into an image box. I think I need to write something that reduces the size of the image prior to commiting it to the actual database.

    Waddaya thinx?

  5. #5
    Lively Member
    Join Date
    Jul 1999
    Posts
    78

    Post

    I'm not sure.
    I don't have enough experience with Images to really give you the answer you want.

    Possibly resizing it prior to embedding it would do it, but I don't know.

    You're not using BMPs are you?

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Location
    Yorkshire, UK
    Posts
    20

    Post

    Nah...not using BMP's

    I reduced the image size manually to the same size as the imagebox and the amount of disk space reduced from 3 meg down to about 100k which was better. So, I think I'm right in saying that althought the imagebox resizes the image it still retains the original size?????

    So if anyone knows how to rezize an image before I load it to the imagebox, it would really be appreciated.

    Thanks for your time m8

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