Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert.FromBase64String fails in Vista mode
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 4.0
OS:
Windows 8.1
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01632031
Message ID:
01632178
Views:
48
Hi
i dont know anything in .Net ,C# but i know images with vfp codes only-I think your related job can be done only with vfp9.
*strconv(13): Converts single-byte characters in cExpression to encoded base64 binary.
*strconv(14): Converts base64 encoded data in cExpression to original unencoded data.

local m.myvar   &&encoded 64 obtained with strconv(filetostr(getpict()),13)
text to m.myvar noshow  
R0lGODlhFgAWAIQbAD04KTRLYzFRjlldZl9vj1dusY14WYODhpWIbbSVFY6O7IOXw5qbms+wUbCztca0ccS4kdDQjdTLtMrL1O3YitHa7OPcsd/f4PfvrvDv8Pv5xv///////////////////yH5BAEKAB8ALAAAAAAWABYAAAV84CeOZGmeaKqubMteyzK547QoBcFWTm/jgsHq4rhMLoxFIehQQSAWR+Z4IAyaJ0kEgtFoLIzLwRE4oCQWrxoTOTAIhMCZ0tVgMBQKZHAYyFEWEV14eQ8IflhnEHmFDQkAiSkQCI2PDC4QBg+OAJc0ewadNCOgo6anqKkoIQA7
endtext
thisform.image1.pictureval=strconv(m.myvar,14)  &&restore image from blob on a form (rendered with gdiplus)
try this code on a form (1 button+image control) : you can see image restored in image control.

you can build a vfp report from your images and preview/print easily.
Previous
Reply
Map
View

Click here to load this message in the networking platform