You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The content-type should be 'image/bmp', however it is 'text/plain'.
Then, I tried to fetch the attachment, but it returns 404 error.
data=db.fetch_attachment(case1,"test")CouchRest::NotFound: 404NotFoundfrom/var/lib/gems/2.3.0/gems/couchrest-2.0.1/lib/couchrest/connection.rb:228:in`raise_response_error' from /var/lib/gems/2.3.0/gems/couchrest-2.0.1/lib/couchrest/connection.rb:183:in `handle_response_code' from /var/lib/gems/2.3.0/gems/couchrest-2.0.1/lib/couchrest/connection.rb:172:in `send_and_parse_response'from/var/lib/gems/2.3.0/gems/couchrest-2.0.1/lib/couchrest/connection.rb:157:in`execute' from /var/lib/gems/2.3.0/gems/couchrest-2.0.1/lib/couchrest/connection.rb:67:in `get' from /var/lib/gems/2.3.0/gems/couchrest-2.0.1/lib/couchrest/database.rb:336:in `fetch_attachment'from(irb):18from/usr/bin/irb:11:in `<main>'
Is my code is wrong ? Please let me know how I can put/fetch attachments.
Thanks,
The text was updated successfully, but these errors were encountered:
Hello,
I'm trying to put an attachment into the existing document.
My code is as follows:
The case1 document is as follows:
The content-type should be 'image/bmp', however it is 'text/plain'.
Then, I tried to fetch the attachment, but it returns 404 error.
Is my code is wrong ? Please let me know how I can put/fetch attachments.
Thanks,
The text was updated successfully, but these errors were encountered: