|
-
Apr 12th, 2004, 06:43 AM
#1
Thread Starter
Addicted Member
Best method to send image across network
Hi,
I am just evaluating a few methods on how to most efficiently send a image (in this case a jpeg) across a network.
The purpose is to store employee images in a shared network folder and retrieve them when required.
I have decided against storing the image, even as a byte stream in the SQL Server db.
I have looked at:
1. Reading local copy the jpeg as a binary file Binary Read/Get and sending the byte stream to the server object which then writes the byte stream using Binary Write/Put to the shared folder. To retrieve the jpeg file is read and sent as a byte stream to the client and loaded into the image control using API's.
2. File copy and Load Picture using UNC's
Most of the jpegs are pretty small - around 6kb
Just hoping to get some feedback from those who have implemented this in their app about which is the better approach.
Jack
-
Apr 12th, 2004, 06:51 AM
#2
Since I'm not on a network, I can't really be sure. Should SavePicture() work? Something like:
VB Code:
SavePicture Picture1.Image, "\\server\folder\image.jpg"
?
Phreak
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Apr 12th, 2004, 07:07 AM
#3
Thread Starter
Addicted Member
Thanks for your comment but I thought SavePicture can only be used with bitmaps or will only save as a bitmap.
As I am dealing with jpegs this won't work for me.
Jack
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
|