http-backend ( png-data uuid -- )


Vocabulary
visionect

Inputs
png-dataan object
uuidan object


Outputs
None

Definition


:: http-backend ( png-data uuid -- )
png-data choose-boundary :> boundary
"multipart/form-data; boundary=\"" boundary "\"" 3append
:> content-type content-type <post-data> [
"--" % boundary % "\r\n" %
"Content-Disposition: form-data; name=\"image\"; filename=\"image..."
% "Content-Type: image/png\r\n" % "\r\n" % png-data %
"\r\n" % "--" % boundary % "--\r\n" %
] B{ } make >>data "/backend/" uuid append visionect-post
drop ;