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
  How to parse and group hierarchical list items from an unindented string in Python? ann23fr 0 179 Mar-27-2024, 01:16 PM
Last Post: ann23fr
  Microphone stream manipulation Talking2442 1 2,717 Nov-19-2023, 02:08 PM
Last Post: palumanic
  Sending data from the form to DB quisatz 6 1,308 Nov-13-2023, 09:23 AM
Last Post: Annaat20
  Python and pandas: Aggregate lines form Excel sheet Glyxbringer 12 1,838 Oct-31-2023, 10:21 AM
Last Post: Pedroski55
  Convert From PDf into JPEG Problem koklimabc 4 1,018 Sep-05-2023, 06:44 AM
Last Post: Gribouillis
  EEG stream data with mne and brainfolw PaulC 0 488 Aug-22-2023, 03:17 AM
Last Post: PaulC
  [split] Parse Nested JSON String in Python mmm07 4 1,519 Mar-28-2023, 06:07 PM
Last Post: snippsat
  Start Putty into Python Form Schlazen 5 5,458 Dec-13-2022, 06:28 AM
Last Post: divya130
  python Extract sql data by combining below code. mg24 1 958 Oct-03-2022, 10:25 AM
Last Post: mg24
  python read iperf log and parse throughput jacklee26 4 2,756 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