Results 1 to 3 of 3

Thread: Best method to send image across network

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    187

    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

  2. #2
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246
    Since I'm not on a network, I can't really be sure. Should SavePicture() work? Something like:

    VB Code:
    1. SavePicture Picture1.Image, "\\server\folder\image.jpg"

    ?

    Phreak

    Visual Studio 6, Visual Studio.NET 2005, MASM

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    187
    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
  •  



Click Here to Expand Forum to Full Width