3D Model STL upload fails due to file size too big

Discussion in 'Shapeways API' started by 538744_deleted, Sep 27, 2015.

  1. There isn't any examples available to do this so I looked at someone else's code and he was encoding the model file data to BASE64 then attach the data string as the POST request body parameter.

    I have a 23MB STL model file that I want to upload to Shapeways via the restful API. When I encode it with BASE64, it becomes roughly 65MB. When I sent that request out I got a response form Shapeways "The request exceeded the maximum permissible size"

    So my questions are:
    1. Am I correct in encoding the raw file into BASE64 and sending it as part of POST request body?
    2. What is the maximum file size allowed after encoding to BASE64?
     
  2. mkroeker
    mkroeker Well-Known Member
    Assuming that the same limits apply as for the interactive upload, you could try zip-compressing your STL before encoding
     
  3. After some more digging, it seems like it isn't actually the Shapeways API response. My web server is complaining the size is too big.