jonataslaw / get_server

A backend server that makes it possible to program with Flutter syntax and reuse existing code
Apache License 2.0
476 stars 42 forks source link

how to save image using multipart #73

Open vimptech-git opened 2 years ago

jonataslaw commented 2 years ago
  File fileDef = File(filePath);
  fileDef.createSync(recursive: true);
  Uint8List bytes = file.readAsBytesSync();
  fileDef.writeAsBytesSync(bytes);
vimptech-git commented 2 years ago

Thanks

On Tue, Mar 8, 2022, 5:28 PM Jonny Borges @.***> wrote:

File fileDef = File(filePath); fileDef.createSync(recursive: true); Uint8List bytes = file.readAsBytesSync(); fileDef.writeAsBytesSync(bytes);

— Reply to this email directly, view it on GitHub https://github.com/jonataslaw/get_server/issues/73#issuecomment-1061701833, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANO4T65VTZPCMWF2EUUY273U646EPANCNFSM5QDPIFFQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

vimptech-git commented 2 years ago

A big thanks for your valuable support.... 👍👍👍 Below i list 3 problem when I integration/testing getxserver

Problem 1) Unhandledexception:MimeMultipartException: Bad multipart ending

This is Big issue ...
When some one (end user)

Change api call header request like tick content Type ( multipart/form-data; boundary=) then our api application(main.exe) is crashing. Then we need to manually start again

Problem 2) Follow thought your docs i host my First getxserver on my vps(Linux Ubuntu),👍👍

  In ubuntu I use wine applications (my server app => main.exe )

For running windows applications . I don't know it's a best method or not? Pls let me know it's ok or not, -------------------------------- Problem 2) Also I upload images,pdf.. using multipart .It's working on localhost(127.0.0.1) also on lan ip, But in vps the file are currepted can't open ...(file can see, but can't open)

-----------------------------------

On Tue, Mar 8, 2022, 8:30 PM shalih irshad @.***> wrote:

Thanks

On Tue, Mar 8, 2022, 5:28 PM Jonny Borges @.***> wrote:

File fileDef = File(filePath); fileDef.createSync(recursive: true); Uint8List bytes = file.readAsBytesSync(); fileDef.writeAsBytesSync(bytes);

— Reply to this email directly, view it on GitHub https://github.com/jonataslaw/get_server/issues/73#issuecomment-1061701833, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANO4T65VTZPCMWF2EUUY273U646EPANCNFSM5QDPIFFQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>