Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Different path mapping and image
Message
De
20/01/2005 02:36:33
 
 
À
19/01/2005 12:23:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00978620
Message ID:
00978777
Vues:
31
This message has been marked as a message which has helped to the initial question of the thread.
>I am storing path of one image using character field vfp base table.
>
>Different clients in one local network can map the server of different ways and any client can store images on vfp table according the disk map defined by that user.
>
>So, if I am the user Antonio and I am mapping the disk where the images are stored like f:\..... the path image will be stored with this path. But If one second user have mapped the same disk like h:\.... he could not find the image.
>
>How to avoid this problem?

Hi there :)

You can construct path at run time.
So if your images are stored under let say

\\SomeMachine\myImages

you keep for EACH USER variable part of that path (in ini file ,txt ,dbf or whatever u use) - and then you construct full path at run time.

So in this organisation in the ini file you wld store variable part of the path - prefix or root if you want.

'\\SomeMachine'
'F:\'
'G:\'
.
.
or whatever are mappings.

And then at run time you wld simply construct path
by adding 'myImages' to whatever is the prefix path.


cRootPath = read_images_root_path() &&function u will build :)
cRealPath = addbs(cRootPath)+'myImages'


I am using this solution for databases as well.


Rgds++
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform