|
-
Jun 2nd, 2025, 09:59 AM
#1
Re: VB6 - Simple ToastNotification with Interactive Elements (using WinRT XML interfa
@VanGoghGaming: I'm not sure if this actually works. Copilot suggested the following when I asked if you could also load images into a ToastNotification via streams. It doesn't seem to work directly via streams, but it does work via a Base64 string. You'd have to try it out.
string base64Image = Convert.ToBase64String(File.ReadAllBytes("path_to_image.png"));
<image src='data:image/png;base64,{base64Image}'/>
In my large WinRT project, for example, there's the class CryptographicBuffer -> EncodeToBase64String(Buffer). Alternatively, something else could be used to convert a byte array to a Base64 string. If that works, you could also load images from the web into a byte array, convert them, and integrate them as shown above.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|