Displaying an image from a base64 string
Hey, I'm trying to display an image in a GuiBitmapCtrl.
The image is encoded with base64. So far I have this. PHP Code:
|
The image name I assume? Have you tried debugging it? Does it give the original image name?
|
Yes, base64decode returns the correct string, meaning it works the same way as it should. But for some reason it won't display it as an image.
|
Try using GuiShowImgCtrl instead. Not sure what you're trying to accomplish in the long run, but I'd be willing to bet that it'd be more appropriate for what you're doing.
PHP Code:
I also know this has been pointed out to you in numerous threads, but you really oughta use variable headers all the time. |
No luck with showimg.
|
You have to save the file first.
PHP Code:
|
Cheers, your method worked.
Although, i'm sending images from a c# application through a port to my server. There must be a length, because it doesn't receive the full image. It only receives part of the base64 string being sent :/ |
All times are GMT +2. The time now is 12:02 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.