Retrieve not encoded data from blob
Posted: Fri Dec 13, 2013 3:19 pm
Hello,
I need to retrieve some data from a BD that I cannot modify.
The data are stored in a BLOB columns and contains not coded images.
This is the begin pieces of one of the data:
HEX:
TEXT:
The data retrieved from livecode is:
The code I use is this:
It seems that the 5th char end the retrievment of the binary data.
Is there any method I can use for retrieve the entire image?
I repeat, I cannot modify the DB and cannot use external (need portability).
Thank you very much!
I need to retrieve some data from a BD that I cannot modify.
The data are stored in a BLOB columns and contains not coded images.
This is the begin pieces of one of the data:
HEX:
Code: Select all
FFD8 FFE0 0010 4A46 4946 0001 0201 0060 0060
Code: Select all
ÿØÿà..JFIF.....'.'
Code: Select all
×þß
Code: Select all
put "SELECT "&tCol&" FROM "&tTab&" WHERE "&tWhere into query
put revQueryDatabaseBlob(DbId,query) into DbCurs
put empty into tData
get revDatabaseColumnNamed(DbCurs, tCol, "tData")
print tData
Is there any method I can use for retrieve the entire image?
I repeat, I cannot modify the DB and cannot use external (need portability).
Thank you very much!