Python Forum
how to parse multipart/form-data for xls or jpeg stream into python code and store
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to parse multipart/form-data for xls or jpeg stream into python code and store
#1
Hi All,
I am facing an issue. I have an AWS API gateway and I am post some raw data and MS XLS file using postman to a AWS Lambda function. AWS API gateway has passthrough set as "binary data" for mutipart/form-data.

I need to parse the stream in a Python Lambda function and store the XLS file in S3.

I need help on how to parse the XLS stream in Body stream and store in s3 file.

I am able to solve the other attachment types like CSV and TXT with utf-8 decoding parse. But for XLS /JPG file , how to parse the stream and store s3 file, I am facing issue.

Please someone help
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Automated filler for an Excel form is not writing the data Quian34 2 36 Jun-10-2026, 07:27 AM
Last Post: Larz60+
  Python: How to import data from txt, instead of running the data from the code? Melcu54 1 1,352 Dec-13-2024, 06:50 AM
Last Post: Gribouillis
  How do I stream and record at the same time with arducam? traderjoe 0 1,721 Oct-23-2023, 12:01 AM
Last Post: traderjoe
  Sending data from the form to DB quisatz 5 5,586 Sep-27-2023, 04:58 PM
Last Post: quisatz
  Convert From PDf into JPEG Problem koklimabc 4 4,052 Sep-05-2023, 06:44 AM
Last Post: Gribouillis
  EEG stream data with mne and brainfolw PaulC 0 1,360 Aug-22-2023, 03:17 AM
Last Post: PaulC
  [split] Parse Nested JSON String in Python mmm07 4 3,787 Mar-28-2023, 06:07 PM
Last Post: snippsat
  Start Putty into Python Form Schlazen 5 11,390 Dec-13-2022, 06:28 AM
Last Post: divya130
  python Extract sql data by combining below code. mg24 1 2,011 Oct-03-2022, 10:25 AM
Last Post: mg24
  python read iperf log and parse throughput jacklee26 4 5,887 Aug-27-2022, 07:04 AM
Last Post: Yoriz

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020