Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to make this string an image?
Message
From
17/07/2017 05:31:45
 
 
To
17/07/2017 05:20:27
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
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:
01652683
Views:
49
>>>Hi everybody,
>>>
>>>If I got this as a value, what is it and can this be transformed into an image somehow?
>>>
>>>
>>>ÿØÿà
>>
>>I have seen this when a Memo field containing binary Image value got read into XML using CursorToXML without the proper formatting.
>
>But... cursortoXml() should format it properly if it's binary, using the CDATA[[ ... ]] syntax and Base64 encoded binary inside.
>
>Ah, the value of "is binary" may differ :). "Is binary" should mean "is marked as nocptrans". If it is not marked as binary but contains binaries, i.e. characters which may be, ahem, not quite kosher by XML standards, well then - you get a malformed XML.

Yes exactly that happened to me once, so we had to add the flag 8 in the CURSORTOXML() flags Parameter.
Christian Isberner
Software Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform