Thread
#android-architecture
    u

    ursus

    1 year ago
    Is there a way to "fix" endpoint that takes bitmaps as base64 strings in json? Could I possibly somehow just stream the whole json, or will I need to implement multipart form data?
    FunkyMuse

    FunkyMuse

    1 year ago
    Multipart is the way to go. You can send byte array to your backend and reconstruct the file really easy, that way you'll have tackled SAF too. Base64 will make the request even bigger than what the image is, also don't forget to pay attention if you need to compress the image before sending it to the backend.
    u

    ursus

    1 year ago
    Right but that requires changes on the backedend, correct? btw whats SAF?