Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the dbf format to hold an image
Message
De
06/04/2017 09:34:31
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Divers
Thread ID:
01649850
Message ID:
01649871
Vues:
108
>>>what is the dbf format to hold an image
>>
>>Memo nocptrans (i.e. binary). You can use General field, which is practically the same thing.
>
>
>Thanks
>
>I have the name of the image file in the dbf eg bigimage.jpg
>
>bigimage.jpg is a filte on t:\stock
>
>How do I add the actual image to my dbf and then convert it to htm?

You don't convert it into html - html is not a database, you show it in html. In your code
	lcFileUrl="File:///"+Chrtran(lcFullPathToJpg, "\", "/")
			TEXT TO c NOSHOW TEXTMERGE
	<html>
		<p><img src="<<lcFileUrl>>"> </p>
	</html>
			ENDTEXT
Now variable c contains the html with just image and nothing else - no proper header, no attributes (size, for example), but it would show.

strtofile(c, "fullpath\your.html")

and then use your favourite way of passing the page to a browser, and there it is. Mind you, the file MUST exist on disk (unless you want to experiment with inline images, base64 encoded, which I see done from time to time but never did myself), so storing it in a dbf is kind of redundant, unless you want to keep them in there, copy to disk as needed, remove when no more needed.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform