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
  Microphone stream manipulation Talking2442 1 2,835 Nov-19-2023, 02:08 PM
Last Post: palumanic
  Python and pandas: Aggregate lines form Excel sheet Glyxbringer 12 2,139 Oct-31-2023, 10:21 AM
Last Post: Pedroski55
  Sending data from the form to DB quisatz 5 1,484 Sep-27-2023, 04:58 PM
Last Post: quisatz
  Convert From PDf into JPEG Problem koklimabc 4 1,181 Sep-05-2023, 06:44 AM
Last Post: Gribouillis
  EEG stream data with mne and brainfolw PaulC 0 567 Aug-22-2023, 03:17 AM
Last Post: PaulC
  [split] Parse Nested JSON String in Python mmm07 4 1,656 Mar-28-2023, 06:07 PM
Last Post: snippsat
  Start Putty into Python Form Schlazen 5 5,640 Dec-13-2022, 06:28 AM
Last Post: divya130
  python Extract sql data by combining below code. mg24 1 1,022 Oct-03-2022, 10:25 AM
Last Post: mg24
  python read iperf log and parse throughput jacklee26 4 2,951 Aug-27-2022, 07:04 AM
Last Post: Yoriz
  Unable to request image from FORM Data usman 0 1,046 Aug-18-2022, 06:23 PM
Last Post: usman

Forum Jump:

User Panel Messages

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