Results 1 to 5 of 5

Thread: Compressing a bitmap image without going to HDD [RESOLVED: Save as jpeg]

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2004
    Posts
    22

    Question Compressing a bitmap image without going to HDD [RESOLVED: Save as jpeg]

    I have a bitmap/image created in memory (not on HDD) and want to compress it before saving it to database. For security reason, I don't want to save it on the disck.

    Any idea how to compress it this way?
    Last edited by jkothia; Apr 7th, 2004 at 01:40 PM.

  2. #2
    Frenzied Member <ABX's Avatar
    Join Date
    Jul 2002
    Location
    Canada eh...
    Posts
    1,622
    wut compression method u wanna use?
    Tips:
    • Google is your friend! Search before posting!
    • Name your thread appropriately... "I Need Help" doesn't cut it!
    • Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
    • Allways Include the Name and Line of the Exception (if one is occuring!)
    • If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)


    If you think I was helpful, rate my post
    IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous

  3. #3
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    The whole thing is, all of this can be achieved with buffers and streamreaders/writers. You don't have to use a file I/o, you can do it straight to memory.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Mar 2004
    Posts
    22
    I am not sure as to what compression method I want to use. I'd sure like to cut down the size of bitmap file which is going to be approx 200x600 (a 100x100 ~= 65kbytes).

    I am able to create the bitmap in memory and store it in database. Just don't know how to compress it. I am quite new to these aspects of VB. I've been dealing more with Access Basic, and that too in my spare time.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Mar 2004
    Posts
    22
    I believe saving it as jpeg instead of bmp does the trick.

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