![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
There is no errormessage running this, but the graphic will not stick in the SQL table, or the cannot be retieved back to Paradox. |
#3
| |||
| |||
|
|
Bjorn Sagbakken wrote: There is no errormessage running this, but the graphic will not stick in the SQL table, or the cannot be retieved back to Paradox. How big is the graphic file? The BDE cannot transfer via ODBC BLOB files larger than 1000000 bytes. |
#4
| |||
| |||
|
|
field type in Paradox. In the SQL, I guess this field type correspond to "image" type. |
#5
| |||
| |||
|
|
jpg-files just to check. But you set me on an idea; maybe there are options in the BDE for the SQL connection? |
#6
| |||
| |||
|
|
Bjorn Sagbakken wrote: jpg-files just to check. But you set me on an idea; maybe there are options in the BDE for the SQL connection? - There are some things to tweak. I don't have the BDE in front of me so I can't help much now. - How are you attempting to post from Pdox to MS-SQL: tcursor directly, tcursor.add(), table add(), etc? IIRC, I could never get an SQL INSERT to work so I always did a table (not tcursor) add. Attach a table var to the remote table and another to a local PRIV table, then add local to remote. |
|
- Are you first reading the source JPG, using readFromFile, into a BLOB or GRAPHIC field before attempting to load to the server? |
#7
| |||
| |||
|
|
Bjorn Sagbakken wrote: field type in Paradox. In the SQL, I guess this field type correspond to "image" type. Just to make sure you are using the correct type, have you tried loading images into your SQL base from a command line, outside of Paradox? Oracle has a loader program called SQL*Loader for that. I think it is called "bulk loader" in MS-SQL. |
#8
| |||
| |||
|
|
Basically the graphic content resides in a Paradox table with GRAPHIC as the field type, and ideally this should go directly to the SQL, but yes, I have also tried to readfromfile. |
#9
| |||
| |||
|
|
I have written a test-script in Paradox to copy the graphic from Pdox to SQL, using tcursors and graphic variables. |
#10
| |||
| |||
|
|
Eventually I will use .NET for web-pages, so I need to figure out how to store images into the SQL from that side also. |
![]() |
| Thread Tools | |
| Display Modes | |
| |