Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Putting Object into BLOB field
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01423962
Message ID:
01423972
Views:
56
This message has been marked as a message which has helped to the initial question of the thread.
>>Say,
>>
>>oStream = loAttachment.GetDecodedContentStream()
>>
>>cText = oStream.ReadText()
>
>Unfortunately object does not support the ReadText() method returning error:
>OLE IDispatch exception code 0 from ADODB.Stream: Operation is not allowed in this context...
>
>All I know is that loAttachment.GetDecodedContentStream() returns an object (VARTYPE()=O), other than that I don't have much information on how to read these attachments, I don't even know if GetDecodedContentStream() is the correct method of retreiving the attachment but it is all I can find.

Which methods does it support? Can you find out using Intellisense?

Can you try
loStream = loAttachment.GetDecodedContentStream()
lwStream = loStream.Read()
INSERT INTO Attachments (iTimeId, wAttachmnt) VALUES (lnTimeId, lwStream)
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform