Forum Discussion
beefy80
May 31, 2016Nimbostratus
ASM Blocking Image Uploads
Hello
We have a Rest API using JSON which accepts an image as part of the payload. The image is Base64 Encoded and generally works well however we have had some instances where the Base64 encod...
Torti
Jun 01, 2016Altostratus
The best way to do this is with multipart content type. There exist different subtypes, i.e. related or mixed. In my opinion, it is the best way to transport files. Here, you don't need base64. The file can be apend at the rest request without convert it before.
You can look here http://stackoverflow.com/questions/4083702/posting-a-file-and-data-to-restful-webservice-as-json
or http://www.w3.org/Protocols/rfc1341/7_2_Multipart.html
or https://tools.ietf.org/html/rfc2387
or https://tools.ietf.org/html/rfc2046
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects