|
-
Apr 24th, 2000, 05:08 PM
#1
Thread Starter
Addicted Member
hi all
how to save a picture as .jpg and then send it to another computer with the winsock-control?
thx
-
Apr 24th, 2000, 09:57 PM
#2
Fanatic Member
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 )
-
Apr 24th, 2000, 10:03 PM
#3
Lively Member
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.
-
Apr 24th, 2000, 10:11 PM
#4
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|