getBlob returning broken image #1843
-
Continuing on from this #1840 I now have my code properly posting to the point where I am getting a getBlob response for all my posts. but what I get back is a broken image.
Seems like it should be working but yet... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
My createRecord json is: {"repo":"did:plc:vo37i5ooqwooxgkmbc3277kt", |
Beta Was this translation helpful? Give feedback.
-
Hi, I hit the same. with curl you want I don't know what the difference is, except one works and the other doesn't. |
Beta Was this translation helpful? Give feedback.
I was unable to get curl to work so I went back to using CFML and got it to work. (yay!)
it was all about how the image was being passed
local.imageFile = "E:\test.jpg">
local.imageFile = filereadbinary(local.imageFile) //convert to binary
and then in cfhttp use type="body"
cfhttpparam(type="body" value=local.imageFile)