facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
119.15k stars 24.32k forks source link

JPG image on HTTP request is converted to PNG (Android only) #35842

Closed efrain-salas closed 1 year ago

efrain-salas commented 1 year ago

Description

When making a request using multipart/form-data, the attached JPG image is eventually converted into a PNG image before it reaches the server. MIME type is still image/jpeg , but the image changes format and also grows in size due to the format change.

It only happens on Android.

Screenshot of the data received on the server:

image

Version

0.70.5

Output of npx react-native info

System: OS: macOS 12.6.2 CPU: (8) arm64 Apple M1 Memory: 414.09 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 19.2.0 - /opt/homebrew/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 8.19.3 - /opt/homebrew/bin/npm Watchman: Not Found Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1 Android SDK: Not Found IDEs: Android Studio: Dolphin 2021.3.1 Patch 1 Dolphin 2021.3.1 Patch 1 Xcode: 14.2/14C18 - /usr/bin/xcodebuild Languages: Java: 15.0.2 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.1.0 => 18.1.0 react-native: 0.70.5 => 0.70.5 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

  1. Create a Form Data object
  2. Attach an image base64 encoded URL.
  3. Send the request with fetch()

Snack, code example, screenshot, or link to a repository

const base64Image = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxISEhUSEhIVFhUXFxYYFhgVFRUWFxgYFRUXGRgYFRgYHSggGB0lHhcXITEhJSkrLi4uFx8zODMsNygtLisBCgoKDg0OGhAQGy0lICUtLS0tLS0tLy0tLS0tLS0tLS0tLS0tLS0tLS0vLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIAMIBAwMBIgACEQEDEQH/xAAbAAABBQEBAAAAAAAAAAAAAAADAAECBAU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frtcrbTXBw9pnc1RdeC5gMk6e7FxbY9Z5dAqwsYIMW5T5ckSjxZaDpNy0sJO7CDYctvkoaYYZaTMQZgA3mRvKtHPKnQUV3AwwRcWBJJNxnfJ9VY4sNEhp1CGwXC4gBpFxjl5KXZVIVS7W4hwb3biXugwJJtfdAfXOkweTDyLRcRN7EG45pdSmvyW+uCqQSVaogZ6GZkXg/3Vc8x/CnSJy3yKpnOvMsSA22dvv7ypi/jaDyQxCJokDmZ35IYosl2XULasjkZ6+S9D7CqOjvi5E2BFthP7Lgux2tBl3OSOYF8+a9D7OdMERpicjlawFx6YXFr5Pf+Fp7cnRUyC0bW3K5f2u4R5cHidMRMEgX3t1C2eGJ8he+PEFG7So6qLxf4SfMXH0XHJWj3IOmcV2dw7mu+IFvKAtWn9FjaiHgxfcgiPmtJjt9isDrNRpkIdRQoVNk9QoJBPCSRM4+4TKhBAE5amlPKKCxi1DcilDIUMpMEW3m/qYzySNSDcZx97IhQuIoh7S11wfL0IwgYNrXAiDqbedXxDlEC/mp1SYOkSdhMfNRoUQxoaJgT8RLjczkyUQtnCBFdte12VJ6tH6GE6s6UyBmH2zUPu2mTMPEzeNURPgAPALA7I/xWt/CSZGxhhiQnSXsafgZ8p2n58f2B8E8+8pmTJq3M3MOIE87E+q7b2wtRkWkXi0wRE84k+qSSnU8cTTs3yNX30OQ9qj3mHmJPU6GXPVc69xAzukkujT8CPN7V8+QqN5Jz/IVquP+Gzz+qSSoyWX9BVjERbujHgoDbxSSTMZZCsyfA/QpqZt5pJJkPwhAjN/ZJJJkxyWuAyPALu+x8gf5G/8A2ckkuLXPovhnU2OEy3rqnymFp0xZJJcrPaR51VyVd4b4B97JJLmZ2l+ln0R/v6pJIEyAx981D7+aSSaJEphJJUIZQd9+qSSiRURnJ0klIxkqaZJMAiSSSBn/2Q==';

const data = new FormData();
const value = { uri: base64Image, name: 'test.jpeg', type: 'image/jpeg' };
data.append('image', value);

const response = await fetch(url, {
  method: 'POST',
  headers: {
    'Content-Type':'multipart/form-data',
  },
  body: data,
});
sebas5 commented 1 year ago

Any update about this? I have the same issue

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 7 days with no activity.