Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the path from s_part_data_almost_boundary to s_part_data_boundary #33

Open
Tibalt opened this issue Nov 17, 2022 · 0 comments
Open

the path from s_part_data_almost_boundary to s_part_data_boundary #33

Tibalt opened this issue Nov 17, 2022 · 0 comments

Comments

@Tibalt
Copy link

Tibalt commented Nov 17, 2022

Hi,

Thanks for the great library.

Not many repositories to parse multipart data even in GitHub.

I am using this repo to parse multipart data from a camera. The camera put the binary image into the multipart packet. There are 3 multipart.
The first part is xml file to describe the image information.

The second and third parts are two images.

The code could get the xml part data correctly but not the two images. After I read the code carefully, I think the conditions for state transfer from s_part_data_almost_boundary to s_part_data_boundary are not enough.

for xml file, "boundary" are near the CRLF. But for images, there are no CRLF and "boundary" are put after binary bytes directly.

So we need to add more conditions to let the state transfer from s_part_data to s_part_data_almost_boundary and s_part_data_boundary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant