Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the dbf format to hold an image
Message
From
06/04/2017 09:34:31
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
01649850
Message ID:
01649871
Views:
107
>>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform