Hola Patricio, I use imagenes -> ( ADSFile2Blob( cFile, "imagen", 7 ) ) where ADS_BINARY 6 /* BLOB - any data */ ADS_IMAGE 7 but we can use this other simple method imagenes -> imagen := MEMOREAD( cFile ) By the way, some body ...
Oh. We shall find a way to do through SQL. Till then you are aware that adsFile2Blob(..) works and even much simpler way of ALIAS->IMAGEFIELD := MemoRead( <ImageFile> ) works well. I prefer the last simpler method. There is a sample at http://forums.fivetechsupport.com/viewtopic.php?f=6&t=18396 ...
... like this.. .."Update table Set blobfield = Convert( '1234567890' , SQL_BINARY )" // => success.. I know there's adsFile2blob() but using SQL scalar Convert() or Cast() makes it more cleaner and simplified. Best regards, FAP
... entonces al volcar el contenido del campo a disco le añado la extension. Luego tambien a tener en cuenta es el nombre del campo en la funcion adsfile2blob(), lo puse en MAYUSCULAS, y el tercer parametro ADS_BINARY. Nada mas, asi de simple. Espero le sirva a alguien mas. Mis dos granitos. Salu2, ...
Dear Natter, If you are using a table with BLOB field support like ADS for example. You can save the .exe to that field using AdsFile2Blob() function, export the content with AdsBlob2File() function. Then you can execute the exported binary (.exe). It's like executing .exe from variable/field. ...
Hello Mr. Antonio, Thank you for the reply. ADS_BINARY is 6 ands ADS_IMAGE is 7. I used it in the third parameter (like the above) ADSFile2Blob('file','field',7) I data type for 'field' is image or binary (ADT) but still not working... Maybe there's problem with the wrapper ADSFile2Blob ...