You could base64 encode the file bytes and stick that into a field in the JSON 
you send. Why not just send the file directly though? For instance, instead of 
sending this:

POST /somewhere
Content-Type: application/json
{
  filename: "foo"
  content: "Zm9vLGJhcixiYXoNCjEsMSwxDQoyLDIsMg0KMywzLDM="
}

Send this:

POST /somewhere
Content-Type: text/csv
foo,bar,baz
1,1,1
2,2,2
3,3,3

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to