Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #5363
| Path | csiph.com!news.mixmin.net!news.albasani.net!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Thomas Güttler <guettliml@thomas-guettler.de> |
| Newsgroups | de.comp.lang.python |
| Subject | Re: [Python-de] Binärdaten in JSON |
| Date | Tue, 4 Dec 2018 10:25:32 +0100 |
| Lines | 47 |
| Message-ID | <mailman.78.1543915540.25456.python-de@python.org> (permalink) |
| References | <16bf5ba5-26db-dddf-0a42-ddc61670a4ae@thomas-guettler.de> <mailman.4.1543506244.25456.python-de@python.org> <hmj5df-kdq.ln1@gate.homenet> <0e512eb9-3a48-7f63-b2d5-6f6acfa48da3@thomas-guettler.de> <2141174c-1718-f16e-f056-15af93d0b918@sschwarzer.net> <fb317431-58f6-ea29-94cd-c527e7ca840e@thomas-guettler.de> <12cbd071-b98a-1110-f29a-4efee1b5c408@tjol.eu> <b29fad4c-fc5b-00b2-cdd1-3f5c95768515@thomas-guettler.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.uni-berlin.de CRpm2qJJWwbypyfc7aQREwFVWctn+ikAwQTzrsBAYpEA== |
| Return-Path | <guettliml@thomas-guettler.de> |
| X-Original-To | python-de@python.org |
| Delivered-To | python-de@mail.python.org |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 |
| In-Reply-To | <12cbd071-b98a-1110-f29a-4efee1b5c408@tjol.eu> |
| Content-Language | de-DE |
| X-BeenThere | python-de@python.org |
| X-Mailman-Version | 2.1.29 |
| Precedence | list |
| List-Id | Die Deutsche Python Mailingliste <python-de.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-de/> |
| List-Post | <mailto:python-de@python.org> |
| List-Help | <mailto:python-de-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <b29fad4c-fc5b-00b2-cdd1-3f5c95768515@thomas-guettler.de> |
| X-Mailman-Original-References | <16bf5ba5-26db-dddf-0a42-ddc61670a4ae@thomas-guettler.de> <mailman.4.1543506244.25456.python-de@python.org> <hmj5df-kdq.ln1@gate.homenet> <0e512eb9-3a48-7f63-b2d5-6f6acfa48da3@thomas-guettler.de> <2141174c-1718-f16e-f056-15af93d0b918@sschwarzer.net> <fb317431-58f6-ea29-94cd-c527e7ca840e@thomas-guettler.de> <12cbd071-b98a-1110-f29a-4efee1b5c408@tjol.eu> |
| Xref | csiph.com de.comp.lang.python:5363 |
Show key headers only | View raw
Am 03.12.18 um 10:21 schrieb Thomas Jollans: > On 30/11/2018 15:01, Thomas Güttler wrote: >> >> Ja, sorry. Ich bin hier etwas genervt, weil die Grundlagen nicht klar sind. >> JSON kann jeder. Aber binäre Daten darin zu übertragen geht leider nicht. >> Mit base64 benötigt es einer expliziten Absprache und darum ist >> es aus meiner Sicht ein work-around. Vermutlich wird es das werden. >> Es kommt darauf an, was der Empfänger der Daten kann. Ich vermute >> MessagePack werden die vermutlich nicht können. Aber vielleicht liege >> ich da auch falsch. > > Base64 kann auch jeder, und die Absprache brauchst Du eh: ein > JSON-Datensatz ist schön und gut, man muss aber immer wissen, wie ein > bestimmtes JSON zu interpretieren ist. In diesem konkreten Fall reiche ich die Daten einfach durch. Ich erhalte per SAP-RFC eine Datenstruktur und geben diese als JSON aus. SAP-RFC kann mit binären Daten umgehen. Schön wäre eine generische Lösung. Die scheitert gerade daran, dass man dann wieder programmieren muss: "if blablabla, dann die Daten erst noch per base64 verwurschteln ..." Wäre wirklich super, wenn ich meinem Kunden sagen könnte: Wir nehmen JSON++ (gibt es nicht, der Name ist erfunden) und fertig. > Je nachdem was Du überträgst, könntest Du auch Data-URIs in dem JSON > einbetten (… die dann wiederum Base64 für Binärdaten benutzen). Da ist > dann auch ein MIME-Typ drin. Es gibt tausend work-Arounds (wie zb base64 selber erstellen) und hundert alternative JSON-Formate. In zehn Jahren werden wir wissen welches Format das Rennen gemacht hat. Aktuell ist das für mich noch nicht abzusehen. Gruß, Thomas -- Thomas Guettler http://www.thomas-guettler.de/ I am looking for feedback: https://github.com/guettli/programming-guidelines
Back to de.comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
[Python-de] Binärdaten in JSON Thomas Güttler <guettliml@thomas-guettler.de> - 2018-11-29 16:36 +0100
Re: [Python-de] Binärdaten in JSON Thomas Orgelmacher <trash@odbs.org> - 2018-11-29 18:19 +0100
Re: [Python-de] Binärdaten in JSON Arnold Krille <arnold@arnoldarts.de> - 2018-11-29 19:46 +0100
Re: [Python-de] Binärdaten in JSON Thomas Güttler <guettliml@thomas-guettler.de> - 2018-11-30 09:48 +0100
Re: [Python-de] Binärdaten in JSON Thomas Orgelmacher <trash@odbs.org> - 2018-11-30 19:24 +0100
Re: [Python-de] Binärdaten in JSON Thomas Orgelmacher <trash@odbs.org> - 2018-11-30 19:37 +0100
Re: [Python-de] Binärdaten in JSON Stefan Schwarzer <sschwarzer@sschwarzer.net> - 2018-11-30 11:27 +0100
Re: [Python-de] Binärdaten in JSON Hardy Erlinger <hardy.erlinger@posteo.de> - 2018-11-30 11:40 +0100
Re: [Python-de] Binärdaten in JSON Thomas Güttler <guettliml@thomas-guettler.de> - 2018-11-30 15:01 +0100
Re: [Python-de] Binärdaten in JSON Thomas Jollans <tjol@tjol.eu> - 2018-12-03 10:21 +0100
Re: [Python-de] Binärdaten in JSON Thomas Güttler <guettliml@thomas-guettler.de> - 2018-12-04 10:25 +0100
Re: [Python-de] Binärdaten in JSON Thomas Güttler <guettliml@thomas-guettler.de> - 2018-12-13 12:14 +0100
[Python-de] IFF Format: Dict? Thomas Güttler <guettliml@thomas-guettler.de> - 2018-12-14 09:04 +0100
Re: [Python-de] IFF Format: Dict? Thomas Güttler <guettliml@thomas-guettler.de> - 2019-01-04 14:31 +0100
Re: [Python-de] IFF Format: Dict? Thomas Orgelmacher <trash@odbs.org> - 2019-01-05 20:58 +0100
Re: [Python-de] IFF Format: Dict? Armin Stross-Radschinski <developer@acsr.de> - 2018-12-14 10:31 +0100
[Python-de] IFF Format Verwendung Christopher Arndt <chris@chrisarndt.de> - 2018-12-14 14:53 +0100
Re: [Python-de] Binärdaten in JSON Stefan Behnel <python-de@behnel.de> - 2018-12-06 09:51 +0100
csiph-web