Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Putting Object into BLOB field
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01423962
Message ID:
01424117
Vues:
41
>>BTW, why not store just attachment itself?
>
>That's what I am trying to do!
>
INSERT INTO Attachments (iTimeId, wAttachmnt) VALUES (lnTimeId, loAttachment)
>gives a data type mismatch even though vartype(loAttachment)=O
>
>
>		loStream = loAttachment.GetDecodedContentStream()
>>		lwStream = loStream.Read()
>>		INSERT INTO Attachments (iTimeId, wAttachmnt) VALUES (lnTimeId, lwStream)
>
>The above runs but puts what looks like a hex string into the BLOB field.
>
>
If you want to save just an attachment
loAttachment.SaveToFile(...)
* Now read it from the file
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform