Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to make this string an image?
Message
From
16/07/2017 02:18:56
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01652660
Message ID:
01652672
Views:
50
>>>Hi everybody,
>>>
>>>If I got this as a value, what is it and can this be transformed into an image somehow?
>>>
>>>
>>>ÿØÿà
>>
>>Just use that as .pictureVal property. It's a string containing an image, i.e. what you'd get by filetostr("some.jpg").
>
>Most likely it should be longer string. I tried this particular string ad PictureVal or strtofile into jpg, but I got nothing showing.

Naomi, as I told you, what you have is a truncated string at the first 0x00 byte. It is useless, this way. That happened at some point in your processing chain, something truncated the image byte sequence so you won't be able to do anything with it now. You'll have to look for the culprit upwards.
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform