load(file_url)
The load(file_url)
function converts a document/URL into an Array of Bytes.
Syntax
SELECT * FROM load(file_url);
Parameters
Parameter | Type | Optional | Description | Possible Values | Sample Value |
---|---|---|---|---|---|
file_url | String | No | The file/webpage to convert into bytes | Any valid URL | 'https://example.com' |
Usage Examples
SELECT * FROM load('s3://sample-onlineboutique-codefiles/onlineboutique-codefiles/just-deserts-spring-obooko-small.pdf');
[37,80,68,70,45,49,46,54,10,37,-30,-29,-49,-45,10,53,32,48,32,111,98,106,10,-83,29,24,83,-17,76,-88,-121,101,90,125,-121,-15,-91,-44,-9,75,-112,125,94,-3,39,55,-125,-42,-90,87,-29,-23,64,10,97,28,99,20,-94,45,-72,-29,-98,-100,84,-1251,56,54,56,10,37,37,69,79,70,10]