Results 1 to 4 of 4

Thread: how to save a pic as jpg and send it with winsock?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    chicago (hope)
    Posts
    146

    Exclamation

    hi all

    how to save a picture as .jpg and then send it to another computer with the winsock-control?

    thx

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    http://www.vbaccelerator.com/codelib/gfx/vbjpeg.htm

    It's the new library by Intel for saving as JPG.

    After that just pass the file through as a byte array.

    (Havn't tested the control myself yet though )

  3. #3
    Lively Member
    Join Date
    Mar 2000
    Posts
    103
    That control you are referring to, if I am not mistaken, only loads jpegs. It does not load bitmaps and then allow you to save them as jpegs. As far as the sending the picture using the winsock control, you can send any file by opening it in binary mode and reading say 100 bytes at a time into a buffer and using winsock.senddata buffer until the length of file (LOF) is reached. Check out the winsock example on this site and just modify it to suit your needs. I am writing a program similar to ICQ using the winsock control.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    chicago (hope)
    Posts
    146
    i don't need to load jpgs, i only need to save the contents of a picturebox...
    vb only is able to save to .bmp, but these files are huge and not optimal for internet use.....

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