pmscraiova
Programmer
I need to populate a table into a SQL databases with some pictures (photos).
The SQL table has two fields:
- FriendID = Integer type
- Picture = Image type
In VFP I made a remote view (rv_SQL_Photo) for this SQL table. I tried to insert the image like this:
I execute this program and I get a successfully transaction. But when I try to get this picture from ASP.NET I have no picture into this field.
I wonder where I made the mistake. Please help me… I am into a great hurry…
Thank you very much,
Eugen
P.S. Also when I put the picture from ASP.NET into the table and I try to get it from VFP (via remote view) I get the following error: “OLE object is invalid or corrupted”…
The SQL table has two fields:
- FriendID = Integer type
- Picture = Image type
In VFP I made a remote view (rv_SQL_Photo) for this SQL table. I tried to insert the image like this:
Code:
Close Databases All
Open Database Photo
Set Database To Photo
Use Photo!rv_SQL_Photo In 0 Alias rv_photo
Select rv_photo
Begin Transaction
Insert Into rv_photo (FriendId) Values (13261)
Append General Picture From "c:\My Pictures\Eugen.jpg"
lSuccess = Tableupdate(.T.)
If lSuccess
End Transaction
Else
Rollback
Endif
I wonder where I made the mistake. Please help me… I am into a great hurry…
Thank you very much,
Eugen
P.S. Also when I put the picture from ASP.NET into the table and I try to get it from VFP (via remote view) I get the following error: “OLE object is invalid or corrupted”…