Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to get a picture file from a server folder using vb6

Posted on 2013-01-30
1
Medium Priority
?
397 Views
Last Modified: 2013-01-30
Hi guys,

I'm working in an application that works like a contacts and each one has a its own picture face, the aplication already select the picture, show it on the form, rename it and save it in a server folder, the rest of the information is saved in a MySQL Database.

Each record has its own Id key number so, the picture is renamed with the same Id Key number.

Now I need to edit the record and show the corresponding picture image on the form.

This is the code to save the file:

    If lSihayfoto = True Then
        rsFotos!Consecutivo = (nCveFoto + 1)
        rsFotos.Update
        rsFotos.Close
        '***** LA SIGUIENTE RUTINA COPIA, RENOMBRA Y GUARDA LA FOTO EN C:\CCIME\Temp *****
        '***** DESPUES LA GUARDA EN EL SERVIDOR YA RENOMBRADA CON EL NUMERO CONSECUTIDO DE FOTOS *****
        cString = Trim(txtBuscaFoto.Text)
        Name cString As "C:\CCIME\Temp\" & Format(cCveFoto, "0000") & ".jpg"
        Set oFSO = CreateObject("Scripting.FileSystemObject")
        oFSO.GetFile("C:\CCIME\Temp\" & Format(cCveFoto, "0000") & ".jpg").Copy "\\EXTLANSBS05\FotosCCIME\", True
        Kill "C:\CCIME\Temp\" & Format(cCveFoto, "0000") & ".jpg"
    End If

Now I need to get the Picture file to show it on edit-from.

Any suggestions?

Thank you so much guys.
0
Comment
Question by:elm9999
1 Comment
 

Accepted Solution

by:
elm9999 earned 0 total points
ID: 38836914
Already solved

cString = "\\EXTLANSBS05\FotosCCIME\" & Format(cCveFoto, "0000") & ".jpg"
Image1.Picture=Loadpicture(cString)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question