hi all
how to save a picture as .jpg and then send it to another computer with the winsock-control?
thx
Printable View
hi all
how to save a picture as .jpg and then send it to another computer with the winsock-control?
thx
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 :))
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.
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.....