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 10:09:29
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
01649850
Message ID:
01649879
Views:
87
Likes (1)
>Yes, I meant this. If the Client has access to the server holding images, then HTML will contain links to the images. If the client doesn't have access to the server holding images, but the process that originally created the html does have access to these images, then we need to embed the images into HTML using data:uri format. In both cases we don't need to store actual images inside the table.
>
>then we need to embed the images into HTML using data:uri format. Do you have an example of code to do this?

then your line to generate the image inside html becomes
TEXT to lcHtml noshow textmerge
<img src="data:image/png;base64,<<strconv(lcFullPathToImage, 13)>>" alt="<<lcImageDescr>" />
endtext
Beware, it may become large. The Base64 encodes three bytes into four, so if your image is 300K, the string will be 400K.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform