Help needed on Blob storage

We are planning to use crateDB as Blob storage.

I am trying to upload csv file and images.

I just refer the below guide and I could not upload any csv file or images. I can only upload plain text like a word or a sentence.

Can you please help me with uploading files and images?

Here is a repro, including the error message:

python3 -c 'import hashlib; print(hashlib.sha1("airport_code.csv".encode("utf-8")).hexdigest())'
curl -isSX  PUT '127.0.0.1:4200/_blobs/myblobs/c62c0e7f78f96d579609030606ad5c0ee0bd9b46' -d "@airport_code.csv" 

Response:

HTTP/1.1 100 Continue

HTTP/1.1 400 Bad Request
content-length: 0

You might alternative use the crate-python library:

That blog post might be outdated

1 Like