Forum » Izdelava spletišč » octet-stream v mailu
octet-stream v mailu
Uporabnik ::
Torej dobim en mail, ki ima priponko zakoderano z octet-stream. Kako to pretvort v človeku dostojno vsebino z uporabo PHP.
Izgleda pa takole:
Content-Type: application/octet-stream; name="PRIPONKA.TXT";
name="PRIPONKA.TXT"
Content-Transfer-Encoding: base64
Content-Description: PRIPONKA.TXT
Content-Disposition: attachment;
filename="PRIPONKA.TXT"
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg...... itd.
Izgleda pa takole:
Content-Type: application/octet-stream; name="PRIPONKA.TXT";
name="PRIPONKA.TXT"
Content-Transfer-Encoding: base64
Content-Description: PRIPONKA.TXT
Content-Disposition: attachment;
filename="PRIPONKA.TXT"
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg...... itd.
markz ::
po dolgem času spet neki pišem ;)
ne boš verjel, v phpju obstaja ena full izi funkcija, ki se kliče base64_decode() ...
najprej prebereš vse tiste čačke v en string, potem pa daš base64_decode($string_data)
končni rezultat je dekodiran fajl ...
ne boš verjel, v phpju obstaja ena full izi funkcija, ki se kliče base64_decode() ...
najprej prebereš vse tiste čačke v en string, potem pa daš base64_decode($string_data)
končni rezultat je dekodiran fajl ...
Uporabnik ::
no morm rečt da mi je že prej ratal, in zakaj mi sploh ni? ker morš res SAMO tiste čačke not dat in niti pikice več ali manj... oz. vsaj men je to delal težave
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | [c#] shrani text, tabele, slikeOddelek: Programiranje | 1508 (1114) | klemen93 |
» | SMTPOddelek: Programiranje | 1533 (1356) | Base-T |
» | Java - JBoss - Servlet - getOutputStream() has already been called for this responseOddelek: Programiranje | 1060 (977) | kopernik |
» | Skrivanje geselOddelek: Izdelava spletišč | 3157 (2397) | Tr0n |
» | Čudn email - Mail delivery failedOddelek: Pomoč in nasveti | 1406 (1248) | Kaboom |